GTK+: OpenGL+: Check context size on expose.

Also, fix splash drawing on Wayland/OpenGL.
This commit is contained in:
Brandon Wright 2018-10-29 16:41:41 -05:00
parent a3ecddc0bc
commit d3115c87d6
2 changed files with 2 additions and 1 deletions

View File

@ -480,6 +480,7 @@ int S9xOpenGLDisplayDriver::opengl_defaults ()
void S9xOpenGLDisplayDriver::refresh (int width, int height)
{
resize ();
}
void S9xOpenGLDisplayDriver::resize ()

View File

@ -786,7 +786,7 @@ Snes9xWindow::expose (void)
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_WINDOW (gtk_widget_get_window (window)))
{
if (config->hw_accel == HWA_NONE)
if (config->hw_accel == HWA_NONE || is_paused ())
S9xRealDeinitUpdate (last_width, last_height);
}
#endif