Skip to content

Commit 0a47f4e

Browse files
committed
Avoid scale_with_dpi constexpr compiler error.
1 parent 9b94c80 commit 0a47f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/windows/display_server_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,7 @@ struct Win32InputTextDialogInit {
25732573
const Callable &callback;
25742574
};
25752575

2576-
static constexpr int scale_with_dpi(int p_pos, int p_dpi) {
2576+
static int scale_with_dpi(int p_pos, int p_dpi) {
25772577
return IsProcessDPIAware() ? (p_pos * p_dpi / 96) : p_pos;
25782578
}
25792579

0 commit comments

Comments
 (0)