Gtk: Refresh window canvas when first displayed.

Wayland/OpenGL doesn't receive a redraw cue after Gtk resizes the
window and it scales a 256x224 corner of the larger surface up with
the viewport extension.
This commit is contained in:
BearOso 2023-03-07 14:06:59 -06:00
parent b258636054
commit e9f8b9925f

View File

@ -228,6 +228,14 @@ void S9xNoROMLoaded()
static bool S9xPauseFunc()
{
static bool first_clear = false;
if (!first_clear)
{
top_level->refresh();
first_clear = true;
}
S9xProcessEvents(true);
if (!S9xNetplayPush())