added option to disable emulation shading in pause mode via command line (resolves #755)

This commit is contained in:
thrust26 2021-01-14 09:32:39 +01:00
parent 0fa0a339e6
commit 27118f3ed0
3 changed files with 10 additions and 2 deletions

View File

@ -2730,6 +2730,10 @@
indicating serious errors override this setting, and are always indicating serious errors override this setting, and are always
shown.</td> shown.</td>
</tr> </tr>
<tr>
<td><pre>-pauseshade &lt;1|0&gt;</pre></td>
<td>Enable or disable emulation shading in pause mode.</td>
</tr>
<tr> <tr>
<td><pre>-audio.enabled &lt;1|0&gt;</pre></td> <td><pre>-audio.enabled &lt;1|0&gt;</pre></td>

View File

@ -343,14 +343,16 @@ void FrameBuffer::update(UpdateMode mode)
case EventHandlerState::PAUSE: case EventHandlerState::PAUSE:
{ {
// Show a pause message immediately and then every 7 seconds // Show a pause message immediately and then every 7 seconds
bool shade = myOSystem.settings().getBool("pauseshade");
if(myPausedCount-- <= 0) if(myPausedCount-- <= 0)
{ {
myPausedCount = uInt32(7 * myOSystem.frameRate()); myPausedCount = uInt32(7 * myOSystem.frameRate());
showTextMessage("Paused", MessagePosition::MiddleCenter); showTextMessage("Paused", MessagePosition::MiddleCenter);
myTIASurface->render(true); myTIASurface->render(shade);
} }
if(rerender) if(rerender)
myTIASurface->render(true); myTIASurface->render(shade);
break; // EventHandlerState::PAUSE break; // EventHandlerState::PAUSE
} }

View File

@ -47,6 +47,7 @@ Settings::Settings()
setPermanent("windowedpos", Common::Point(50, 50)); setPermanent("windowedpos", Common::Point(50, 50));
setPermanent("display", 0); setPermanent("display", 0);
setPermanent("uimessages", "true"); setPermanent("uimessages", "true");
setPermanent("pauseshade", "true");
// TIA specific options // TIA specific options
setPermanent("tia.inter", "false"); setPermanent("tia.inter", "false");
setPermanent("tia.zoom", "3"); setPermanent("tia.zoom", "3");
@ -446,6 +447,7 @@ void Settings::usage() const
<< " -speed <number> Run emulation at the given speed\n" << " -speed <number> Run emulation at the given speed\n"
<< " -turbo <1|0> Enable 'Turbo' mode for maximum emulation speed\n" << " -turbo <1|0> Enable 'Turbo' mode for maximum emulation speed\n"
<< " -uimessages <1|0> Show onscreen UI messages for different events\n" << " -uimessages <1|0> Show onscreen UI messages for different events\n"
<< " -pauseshade <1|0> Enable emulation shading in pause mode\n"
<< endl << endl
#ifdef SOUND_SUPPORT #ifdef SOUND_SUPPORT
<< " -audio.enabled <1|0> Enable audio\n" << " -audio.enabled <1|0> Enable audio\n"