Skip to content

Commit f289648

Browse files
authored
Merge pull request #89303 from V-Sekai/scale-with-dpi-constexpr-4.3
Windows: Avoid `scale_with_dpi` constexpr compiler error.
2 parents bfa866c + 0a47f4e commit f289648

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)