rnd-20040822-4-src
[rocksndiamonds.git] / src / game_em / init.c
index 64d734ccb382fce18131199b986a9764982d3838..061f3009ccabb6fa9533b826f97a0eadae88f12c 100644 (file)
@@ -27,8 +27,7 @@
 #include <string.h>
 #include <errno.h>
 
-#include "../libgame/platform.h"
-#include "../libgame/libgame.h"
+#include "game_em.h"
 
 #include "global.h"
 #include "display.h"
@@ -558,11 +557,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)
   {