Avoid scale_with_dpi constexpr compiler error.

This commit is contained in:
K. S. Ernest (iFire) Lee 2024-03-06 15:15:01 -08:00
parent 9b94c80e9a
commit 0a47f4ebd2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}