Skip to content

Commit

Permalink
Avoid scale_with_dpi constexpr compiler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Mar 6, 2024
1 parent 9b94c80 commit 0a47f4e
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 0a47f4e

Please sign in to comment.