From: Holger Schemel Date: Sat, 2 Apr 2016 17:38:23 +0000 (+0200) Subject: removed redundant code (again) X-Git-Tag: 4.0.0.0-rc1~18 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=a1ded46c84f346effacb50e979fabc0ea9d0fcbd removed redundant code (again) --- 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,