mirror of https://github.com/stella-emu/stella.git
Allow 4:3/16:9 button in MinimalUI mode to work without restarting the ROM.
This commit is contained in:
parent
9a49670d74
commit
e933bd9c6b
|
@ -69,11 +69,6 @@ class AudioSettings;
|
||||||
class OSystem
|
class OSystem
|
||||||
{
|
{
|
||||||
friend class EventHandler;
|
friend class EventHandler;
|
||||||
#ifdef GUI_SUPPORT
|
|
||||||
friend class VideoDialog;
|
|
||||||
friend class StellaSettingsDialog;
|
|
||||||
friend class DeveloperDialog;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OSystem();
|
OSystem();
|
||||||
|
@ -84,6 +79,14 @@ class OSystem
|
||||||
*/
|
*/
|
||||||
virtual bool create();
|
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:
|
public:
|
||||||
/**
|
/**
|
||||||
Get the event handler of the system.
|
Get the event handler of the system.
|
||||||
|
@ -558,14 +561,6 @@ class OSystem
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
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
|
Creates the various sound devices available in this system
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -222,6 +222,7 @@ void MinUICommandDialog::handleCommand(CommandSender* sender, int cmd,
|
||||||
case kStretchCmd:
|
case kStretchCmd:
|
||||||
instance().eventHandler().leaveMenuMode();
|
instance().eventHandler().leaveMenuMode();
|
||||||
instance().settings().setValue("tia.fs_stretch", !instance().settings().getBool("tia.fs_stretch"));
|
instance().settings().setValue("tia.fs_stretch", !instance().settings().getBool("tia.fs_stretch"));
|
||||||
|
instance().createFrameBuffer();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kPhosphorCmd:
|
case kPhosphorCmd:
|
||||||
|
|
Loading…
Reference in New Issue