mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +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;
|
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"));
|
Scripting::fireEvent("game-start", romPath, getSourceFileData()->metadata.get("name"));
|
||||||
int returnValue = 0;
|
int returnValue = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue