all repos — mgba @ 6d89c37886d461c0fad868a4c1dc12fd29a2b8af

mGBA Game Boy Advance Emulator

Qt: Support setting for width and height
Jeffrey Pfau jeffrey@endrift.com
Sun, 02 Nov 2014 03:38:00 -0800
commit

6d89c37886d461c0fad868a4c1dc12fd29a2b8af

parent

d744714ac58b5afea6d8117af5290caf76422797

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/GBAApp.cppsrc/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.cppsrc/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() {