From 392abf4a26dbfe144afbdf49275cda45140a4457 Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 21 Nov 2013 13:24:33 +1000 Subject: [PATCH] Qt: Prevent window resize, fixes #4594 --- Qt/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index 89fe4f1b8..263bfcb83 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -415,6 +415,7 @@ void MainWindow::fullscreenAct_triggered() g_Config.bFullScreen = true; emugl->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); + setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); showFullScreen(); @@ -459,6 +460,7 @@ void MainWindow::SetZoom(int zoom) { dp_yres = pixel_yres; emugl->setFixedSize(pixel_xres, pixel_yres); + setFixedSize(sizeHint()); PSP_CoreParameter().pixelWidth = pixel_xres; PSP_CoreParameter().pixelHeight = pixel_yres;