mirror of https://github.com/snes9xgit/snes9x.git
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:
parent
b258636054
commit
e9f8b9925f
|
@ -228,6 +228,14 @@ void S9xNoROMLoaded()
|
||||||
|
|
||||||
static bool S9xPauseFunc()
|
static bool S9xPauseFunc()
|
||||||
{
|
{
|
||||||
|
static bool first_clear = false;
|
||||||
|
|
||||||
|
if (!first_clear)
|
||||||
|
{
|
||||||
|
top_level->refresh();
|
||||||
|
first_clear = true;
|
||||||
|
}
|
||||||
|
|
||||||
S9xProcessEvents(true);
|
S9xProcessEvents(true);
|
||||||
|
|
||||||
if (!S9xNetplayPush())
|
if (!S9xNetplayPush())
|
||||||
|
|
Loading…
Reference in New Issue