From a1ded46c84f346effacb50e979fabc0ea9d0fcbd Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 2 Apr 2016 19:38:23 +0200 Subject: [PATCH] removed redundant code (again) --- src/libgame/sdl.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 65930a7c..08aec8dc 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -917,20 +917,8 @@ void SDLFillRectangle(Bitmap *dst_bitmap, int x, int y, int width, int height, SDL_FillRect(real_dst_bitmap->surface, &rect, color); -#if defined(TARGET_SDL2) if (dst_bitmap == window) - { - // SDL_UpdateWindowSurface(sdl_window); - // SDL_UpdateWindowSurfaceRects(sdl_window, &rect, 1); UpdateScreen(&rect); - } -#else - if (dst_bitmap == window) - { - // SDL_UpdateRect(backbuffer->surface, x, y, width, height); - UpdateScreen(&rect); - } -#endif } void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height, -- 2.34.1