Allow 4:3/16:9 button in MinimalUI mode to work without restarting the ROM.

This commit is contained in:
Stephen Anthony 2019-05-04 15:51:29 -02:30
parent 9a49670d74
commit e933bd9c6b
2 changed files with 9 additions and 13 deletions

View File

@ -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
*/

View File

@ -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: