Try to eliminate a race condition

This commit is contained in:
Henrik Rydgård committed 2026-08-03 23:09:07 +02:00
1 parent d8d7225710
commit b6d7c18f39
3 files changed
+9 -7

No files matched your search

+2
View File
@@ -1721,6 +1721,8 @@ static bool IsWindowSmall(int pixelWidth, int pixelHeight) {
}
bool Native_UpdateScreenScale(int pixel_width, int pixel_height, float customScale) {
INFO_LOG(Log::System, "Native_UpdateScreenScale: %dx%d, customScale=%f", pixel_width, pixel_height, customScale);
_dbg_assert_(customScale > 0.1f);
float g_logical_dpi = System_GetPropertyFloat(SYSPROP_DISPLAY_LOGICAL_DPI);
float dpi = System_GetPropertyFloat(SYSPROP_DISPLAY_DPI);