all repos — mgba @ be9363b7f4f58cbcc92e2b1567bc344d91d2f591

mGBA Game Boy Advance Emulator

Set real size to minimum for display
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 23:42:24 -0700
commit

be9363b7f4f58cbcc92e2b1567bc344d91d2f591

parent

05cb9d47ab034904c730be225b4d0e476f10f50f

2 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/platform/qt/Display.cppsrc/platform/qt/Display.cpp

@@ -28,7 +28,8 @@ : QGLWidget(format, parent)

, m_painter(nullptr) , m_drawThread(nullptr) { - setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); + setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + setMinimumSize(240, 160); setAutoBufferSwap(false); }
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -19,9 +19,6 @@ #ifdef USE_GDB_STUB

, m_gdbController(nullptr) #endif { - setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - setMinimumSize(240, 160); - m_controller = new GameController(this); m_logView = new LogView();