mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
The screen is now blanked when launching games to eliminate some flickering and other issues.
This commit is contained in:
parent
ec33d8a612
commit
2adff3643e
|
@ -946,6 +946,12 @@ void FileData::launchGame(Window* window)
|
|||
return;
|
||||
}
|
||||
|
||||
// swapBuffers() is called here to turn the screen black to eliminate some potential
|
||||
// flickering and to avoid showing the game launch message briefly when returning
|
||||
// from the game.
|
||||
if (!ViewController::get()->runInBackground(mSystem))
|
||||
Renderer::swapBuffers();
|
||||
|
||||
Scripting::fireEvent("game-start", romPath, getSourceFileData()->metadata.get("name"));
|
||||
int returnValue = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue