mirror of https://github.com/snes9xgit/snes9x.git
GTK+: OpenGL+: Check context size on expose.
Also, fix splash drawing on Wayland/OpenGL.
This commit is contained in:
parent
a3ecddc0bc
commit
d3115c87d6
|
@ -480,6 +480,7 @@ int S9xOpenGLDisplayDriver::opengl_defaults ()
|
|||
|
||||
void S9xOpenGLDisplayDriver::refresh (int width, int height)
|
||||
{
|
||||
resize ();
|
||||
}
|
||||
|
||||
void S9xOpenGLDisplayDriver::resize ()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue