mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
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:
commit
f28964805e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user