small cleanup of variables usage
authorHolger Schemel <info@artsoft.org>
Mon, 8 Feb 2016 20:07:24 +0000 (21:07 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 8 Feb 2016 20:07:24 +0000 (21:07 +0100)
src/libgame/sdl.c

index 996621532c1f895bba022559d670b750605536ae..7fbd38f7de3f072a809ee218f06ea9da7093d153 100644 (file)
@@ -144,9 +144,9 @@ static void UpdateScreen(SDL_Rect *rect)
 
 #else  // TARGET_SDL
   if (rect)
-    SDL_UpdateRects(backbuffer->surface, 1, rect);
+    SDL_UpdateRects(screen, 1, rect);
   else
-    SDL_UpdateRect(backbuffer->surface, 0, 0, 0, 0);
+    SDL_UpdateRect(screen, 0, 0, 0, 0);
 #endif
 }