From e933bd9c6b7e926699f01b8e4fa4738e10a5b147 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 4 May 2019 15:51:29 -0230 Subject: [PATCH] Allow 4:3/16:9 button in MinimalUI mode to work without restarting the ROM. --- src/emucore/OSystem.hxx | 21 ++++++++------------- src/gui/MinUICommandDialog.cxx | 1 + 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/emucore/OSystem.hxx b/src/emucore/OSystem.hxx index 0bedddb4c..8dd18e909 100644 --- a/src/emucore/OSystem.hxx +++ b/src/emucore/OSystem.hxx @@ -69,11 +69,6 @@ class AudioSettings; class OSystem { friend class EventHandler; -#ifdef GUI_SUPPORT - friend class VideoDialog; - friend class StellaSettingsDialog; - friend class DeveloperDialog; -#endif public: OSystem(); @@ -84,6 +79,14 @@ class OSystem */ virtual bool create(); + /** + Creates the various framebuffers/renderers available in this system. + Note that it will only create one type per run of Stella. + + @return Success or failure of the framebuffer creation + */ + FBInitStatus createFrameBuffer(); + public: /** Get the event handler of the system. @@ -558,14 +561,6 @@ class OSystem #endif private: - /** - Creates the various framebuffers/renderers available in this system. - Note that it will only create one type per run of Stella. - - @return Success or failure of the framebuffer creation - */ - FBInitStatus createFrameBuffer(); - /** Creates the various sound devices available in this system */ diff --git a/src/gui/MinUICommandDialog.cxx b/src/gui/MinUICommandDialog.cxx index 704e7190b..ec48cfce1 100644 --- a/src/gui/MinUICommandDialog.cxx +++ b/src/gui/MinUICommandDialog.cxx @@ -222,6 +222,7 @@ void MinUICommandDialog::handleCommand(CommandSender* sender, int cmd, case kStretchCmd: instance().eventHandler().leaveMenuMode(); instance().settings().setValue("tia.fs_stretch", !instance().settings().getBool("tia.fs_stretch")); + instance().createFrameBuffer(); break; case kPhosphorCmd: