Skip to content

Commit

Permalink
Merge pull request #89303 from V-Sekai/scale-with-dpi-constexpr-4.3
Browse files Browse the repository at this point in the history
Windows: Avoid `scale_with_dpi` constexpr compiler error.
  • Loading branch information
akien-mga authored Mar 9, 2024
2 parents bfa866c + 0a47f4e commit f289648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ struct Win32InputTextDialogInit {
const Callable &callback;
};

static constexpr int scale_with_dpi(int p_pos, int p_dpi) {
static int scale_with_dpi(int p_pos, int p_dpi) {
return IsProcessDPIAware() ? (p_pos * p_dpi / 96) : p_pos;
}

Expand Down

0 comments on commit f289648

Please sign in to comment.