mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix #7886 (window scaling issue)
This commit is contained in:
parent
53e80d7f54
commit
487f184cd9
1 changed files with 6 additions and 1 deletions
|
@ -256,7 +256,12 @@ namespace MainWindow
|
|||
}
|
||||
|
||||
static bool IsWindowSmall() {
|
||||
return g_Config.IsPortrait() ? (g_Config.iWindowHeight < 480 + 80) : (g_Config.iWindowWidth < 480 + 80);
|
||||
// Can't take this from config as it will not be set if windows is maximized.
|
||||
RECT rc;
|
||||
GetWindowRect(hwndMain, &rc);
|
||||
int width = rc.right - rc.left;
|
||||
int height = rc.bottom - rc.top;
|
||||
return g_Config.IsPortrait() ? (height < 480 + 80) : (width < 480 + 80);
|
||||
}
|
||||
|
||||
static void ResizeDisplay(bool noWindowMovement = false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue