From 0a47f4ebd21cd181a0c4bddf1189124b76990dd8 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Wed, 6 Mar 2024 15:15:01 -0800 Subject: [PATCH] Avoid scale_with_dpi constexpr compiler error. --- platform/windows/display_server_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 42f8b205c5e..0884119278c 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -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; }