rnd-20040822-1-src
[rocksndiamonds.git] / src / game_em / init.c
index 64d734ccb382fce18131199b986a9764982d3838..55b9d177a70da21f656c4020188e8626fb07a6de 100644 (file)
@@ -558,11 +558,13 @@ int open_all(void)
 #endif
 
 #if 1
-  screenBitmap = CreateBitmap(22 * TILEX, 14 * TILEY, DEFAULT_DEPTH);
+  screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
+                             DEFAULT_DEPTH);
   scoreBitmap = CreateBitmap(20 * TILEX, SCOREY, DEFAULT_DEPTH);
 #endif
 
-  screenPixmap = XCreatePixmap(display, xwindow, 22 * TILEX, 14 * TILEY,
+  screenPixmap = XCreatePixmap(display, xwindow,
+                              MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
                               screenDepth);
   if (screenPixmap == 0)
   {