Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
27118f3e
Commit
27118f3e
authored
Jan 14, 2021
by
thrust26
Browse files
added option to disable emulation shading in pause mode via command line (resolves #755)
parent
0fa0a339
Pipeline
#10464
passed with stages
in 4 minutes and 58 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docs/index.html
View file @
27118f3e
...
...
@@ -2730,6 +2730,10 @@
indicating serious errors override this setting, and are always
shown.
</td>
</tr>
<tr>
<td><pre>
-pauseshade
<
1|0
>
</pre></td>
<td>
Enable or disable emulation shading in pause mode.
</td>
</tr>
<tr>
<td><pre>
-audio.enabled
<
1|0
>
</pre></td>
...
...
src/emucore/FrameBuffer.cxx
View file @
27118f3e
...
...
@@ -343,14 +343,16 @@ void FrameBuffer::update(UpdateMode mode)
case
EventHandlerState
::
PAUSE
:
{
// Show a pause message immediately and then every 7 seconds
bool
shade
=
myOSystem
.
settings
().
getBool
(
"pauseshade"
);
if
(
myPausedCount
--
<=
0
)
{
myPausedCount
=
uInt32
(
7
*
myOSystem
.
frameRate
());
showTextMessage
(
"Paused"
,
MessagePosition
::
MiddleCenter
);
myTIASurface
->
render
(
tru
e
);
myTIASurface
->
render
(
shad
e
);
}
if
(
rerender
)
myTIASurface
->
render
(
tru
e
);
myTIASurface
->
render
(
shad
e
);
break
;
// EventHandlerState::PAUSE
}
...
...
src/emucore/Settings.cxx
View file @
27118f3e
...
...
@@ -47,6 +47,7 @@ Settings::Settings()
setPermanent
(
"windowedpos"
,
Common
::
Point
(
50
,
50
));
setPermanent
(
"display"
,
0
);
setPermanent
(
"uimessages"
,
"true"
);
setPermanent
(
"pauseshade"
,
"true"
);
// TIA specific options
setPermanent
(
"tia.inter"
,
"false"
);
setPermanent
(
"tia.zoom"
,
"3"
);
...
...
@@ -446,6 +447,7 @@ void Settings::usage() const
<<
" -speed <number> Run emulation at the given speed
\n
"
<<
" -turbo <1|0> Enable 'Turbo' mode for maximum emulation speed
\n
"
<<
" -uimessages <1|0> Show onscreen UI messages for different events
\n
"
<<
" -pauseshade <1|0> Enable emulation shading in pause mode
\n
"
<<
endl
#ifdef SOUND_SUPPORT
<<
" -audio.enabled <1|0> Enable audio
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment