Qt: Support setting for width and height
Jeffrey Pfau jeffrey@endrift.com
Sun, 02 Nov 2014 03:38:00 -0800
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/platform/qt/GBAApp.cpp
→
src/platform/qt/GBAApp.cpp
@@ -22,6 +22,7 @@ ConfigurationInit(&config);
GBAConfigLoad(&config); GBAConfigMapGeneralOpts(&config, PORT, &m_opts); + GBAConfigMapGraphicsOpts(&config, PORT, &m_opts); ConfigurationDeinit(&config);
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -126,6 +126,10 @@
if (opts->audioBuffers) { emit audioBufferSamplesChanged(opts->audioBuffers); } + + if (opts->width && opts->height) { + m_screenWidget->setSizeHint(QSize(opts->width, opts->height)); + } } void Window::selectROM() {