removed redundant code
authorHolger Schemel <info@artsoft.org>
Thu, 31 Mar 2016 22:45:16 +0000 (00:45 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 31 Mar 2016 22:45:28 +0000 (00:45 +0200)
src/libgame/sdl.c

index 1d93b5a0782d3addac82a2ce20f3adbe1d69b671..8afeb35bb5bdba99bfdd49b583f8e6cf5c47b91e 100644 (file)
@@ -866,20 +866,8 @@ void SDLCopyArea(Bitmap *src_bitmap, Bitmap *dst_bitmap,
                     src_bitmap->surface_masked : src_bitmap->surface),
                    &src_rect, real_dst_bitmap->surface, &dst_rect);
 
-#if defined(TARGET_SDL2)
-  if (dst_bitmap == window)
-  {
-    // SDL_UpdateWindowSurface(sdl_window);
-    // SDL_UpdateWindowSurfaceRects(sdl_window, &dst_rect, 1);
-    UpdateScreen(&dst_rect);
-  }
-#else
   if (dst_bitmap == window)
-  {
-    // SDL_UpdateRect(backbuffer->surface, dst_x, dst_y, width, height);
     UpdateScreen(&dst_rect);
-  }
-#endif
 }
 
 void SDLBlitTexture(Bitmap *bitmap,