rnd-20040816-2-src
[rocksndiamonds.git] / src / libem / init.c
index 33012f9c74f6d3a77cc2db0f3db1ed30bfc1fa3d..72283c7e5f6223f2fa151da8b765688edf9888f1 100644 (file)
@@ -1,3 +1,6 @@
+
+#if defined(TARGET_X11)
+
 /* 2000-08-10T18:03:54Z
  *
  * open X11 display and sound
@@ -117,6 +120,7 @@ static int gotWhite;
 
 #if 1
 static Bitmap *pcxBitmaps[4];
+static Bitmap *pcxBitmapsX2[4];
 #endif
 
 #if 0
@@ -341,6 +345,27 @@ int open_all(void)
        ttlmaskBitmap = pcxBitmaps[3]->clip_mask;
 #endif
 
+#if 0
+       for (i = 0; i < 4; i++)
+         pcxBitmapsX2[i] = ZoomBitmap(pcxBitmaps[i],
+                                      pcxBitmaps[i]->width * 2,
+                                      pcxBitmaps[i]->height * 2);
+
+       objBitmap = pcxBitmapsX2[0];
+       botBitmap = pcxBitmapsX2[1];
+       sprBitmap = pcxBitmapsX2[2];
+       ttlBitmap = pcxBitmapsX2[3];
+
+       objPixmap = pcxBitmapsX2[0]->drawable;
+       botPixmap = pcxBitmapsX2[1]->drawable;
+       sprPixmap = pcxBitmapsX2[2]->drawable;
+       ttlPixmap = pcxBitmapsX2[3]->drawable;
+       objmaskBitmap = pcxBitmapsX2[0]->clip_mask;
+       botmaskBitmap = pcxBitmapsX2[1]->clip_mask;
+       sprmaskBitmap = pcxBitmapsX2[2]->clip_mask;
+       ttlmaskBitmap = pcxBitmapsX2[3]->clip_mask;
+#endif
+
 #if 1
        screenBitmap = CreateBitmap(22 * TILEX, 14 * TILEY, DEFAULT_DEPTH);
        scoreBitmap = CreateBitmap(20 * TILEX, SCOREY, DEFAULT_DEPTH);
@@ -577,3 +602,5 @@ static int xpmFreeColoursFunc(Display *display, Colormap colourmap, unsigned lon
        if(colourmap != privateColourmap) XFreeColors(display, colourmap, pixels, npixels, 0);
        return(1); /* non-zero for success */
 }
+
+#endif