Make the old behavior that the UI shrinks if the window is small optional. New hidden setting [General]/ShrinkIfWindowSmall

This commit is contained in:
Henrik Rydgård committed 2025-11-06 23:44:55 +01:00
1 parent cfe807baed
commit 9155de3358
3 files changed
+6

No files matched your search

+4
View File
@@ -1645,6 +1645,10 @@ bool Native_IsWindowHidden() {
}
static bool IsWindowSmall(int pixelWidth, int pixelHeight) {
if (!g_Config.bShrinkIfWindowSmall) {
return false;
}
// Can't take this from config as it will not be set if windows is maximized.
int w = (int)(pixelWidth * g_display.dpi_scale_real_x);
int h = (int)(pixelHeight * g_display.dpi_scale_real_y);