rnd-20000815-1-src
[rocksndiamonds.git] / src / sdl.c
index f782961d2a509f9e43ea67d7f729ad32eca3b89f..c37cbff15bc4f2f6174ade0c19d6d16be40e9015 100644 (file)
--- a/src/sdl.c
+++ b/src/sdl.c
@@ -35,9 +35,9 @@ inline void SDLCopyArea(SDL_Surface *src_surface, SDL_Surface *dst_surface,
   dst_rect.h = height;
 
   SDL_BlitSurface(src_surface, &src_rect, dst_surface, &dst_rect);
-#if 1
-  SDL_UpdateRect(dst_surface, dst_x, dst_y, width, height);
-#endif
+
+  if (dst_surface == window)
+    SDL_UpdateRect(dst_surface, dst_x, dst_y, width, height);
 }
 
 inline void SDLFillRectangle(SDL_Surface *surface, int x, int y,