From c7acd995484fadf4cb38c724889c6351ba64fa80 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 18 Oct 2011 19:52:43 +0200 Subject: [PATCH] Same for SDL ... --- gfx/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/sdl.c b/gfx/sdl.c index dd94d43c7c..bee4d82e91 100644 --- a/gfx/sdl.c +++ b/gfx/sdl.c @@ -465,7 +465,6 @@ static void check_window(sdl_video_t *vid) static bool sdl_gfx_frame(void *data, const void* frame, unsigned width, unsigned height, unsigned pitch, const char *msg) { sdl_video_t *vid = data; - check_window(vid); if (SDL_MUSTLOCK(vid->buffer)) SDL_LockSurface(vid->buffer); @@ -537,6 +536,7 @@ static void sdl_gfx_set_nonblock_state(void *data, bool state) static bool sdl_gfx_alive(void *data) { sdl_video_t *vid = data; + check_window(vid); return !vid->quitting; }