projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb0b4d6
)
removed redundant code
author
Holger Schemel
<info@artsoft.org>
Thu, 31 Mar 2016 22:45:16 +0000
(
00:45
+0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 31 Mar 2016 22:45:28 +0000
(
00:45
+0200)
src/libgame/sdl.c
patch
|
blob
|
history
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 1d93b5a0782d3addac82a2ce20f3adbe1d69b671..8afeb35bb5bdba99bfdd49b583f8e6cf5c47b91e 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-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);
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)
if (dst_bitmap == window)
- {
- // SDL_UpdateRect(backbuffer->surface, dst_x, dst_y, width, height);
UpdateScreen(&dst_rect);
UpdateScreen(&dst_rect);
- }
-#endif
}
void SDLBlitTexture(Bitmap *bitmap,
}
void SDLBlitTexture(Bitmap *bitmap,