rnd-20001202-2-src
[rocksndiamonds.git] / src / libgame / sdl.c
index edb861d9203bd13b0b8ca8be9f852204744cf314..e732b11107913b0468d85476ec387d00b648b998 100644 (file)
@@ -53,7 +53,7 @@ inline void SDLInitVideoBuffer(DrawBuffer *backbuffer, DrawWindow *window,
      should never be drawn to directly, it would do no harm nevertheless. */
 
   /* create additional (symbolic) buffer for double-buffering */
-  *window = CreateBitmap(WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH);
+  *window = CreateBitmap(video.width, video.height, video.depth);
 }
 
 inline boolean SDLSetVideoMode(DrawBuffer *backbuffer, boolean fullscreen)