Merge pull request #89303 from V-Sekai/scale-with-dpi-constexpr-4.3

Windows: Avoid `scale_with_dpi` constexpr compiler error.
This commit is contained in:
Rémi Verschelde 2024-03-09 10:18:55 +01:00 committed by GitHub
commit f28964805e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}