mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't try to resize the display if the window size didn't change.
This commit is contained in:
parent
336dffa13a
commit
cb67e0439a
1 changed files with 5 additions and 1 deletions
|
@ -121,9 +121,13 @@ namespace MainWindow
|
|||
void ResizeDisplay() {
|
||||
RECT rc;
|
||||
GetClientRect(hwndMain, &rc);
|
||||
MoveWindow(hwndDisplay, 0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, TRUE);
|
||||
|
||||
if ((rc.right - rc.left) == PSP_CoreParameter().pixelWidth &&
|
||||
(rc.bottom - rc.top) == PSP_CoreParameter().pixelHeight)
|
||||
return;
|
||||
PSP_CoreParameter().pixelWidth = rc.right - rc.left;
|
||||
PSP_CoreParameter().pixelHeight = rc.bottom - rc.top;
|
||||
MoveWindow(hwndDisplay, 0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight, TRUE);
|
||||
|
||||
// round up to a zoom factor for the render size.
|
||||
int zoom = (rc.right - rc.left + 479) / 480;
|
||||
|
|
Loading…
Add table
Reference in a new issue