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
9c1b9ae0
Commit
9c1b9ae0
authored
Dec 19, 2018
by
Stephen Anthony
Browse files
Fix bug when taking snapshots in 1x mode; once started, it never stopped.
parent
933c4d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/emucore/TIASurface.cxx
View file @
9c1b9ae0
...
...
@@ -418,7 +418,10 @@ void TIASurface::render()
mySLineSurface
->
render
();
if
(
mySaveSnapFlag
)
{
myOSystem
.
png
().
takeSnapshot
();
mySaveSnapFlag
=
false
;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...
...
@@ -427,6 +430,8 @@ void TIASurface::renderForSnapshot()
// TODO: This is currently called from PNGLibrary::takeSnapshot() only
// Therefore the code could be simplified.
// At some point, we will probably merge some of the functionality.
// Furthermore, toggling the variable 'mySaveSnapFlag' in different places
// is brittle, especially since rendering can happen in a different thread.
uInt32
width
=
myTIA
->
width
();
uInt32
height
=
myTIA
->
height
();
...
...
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