mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Make the old behavior that the UI shrinks if the window is small optional. New hidden setting [General]/ShrinkIfWindowSmall
This commit is contained in:
1 parent
cfe807baed
commit
9155de3358
3 files changed
+6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user