X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finit.c;h=da8ebd645f145075903a5380b0d112fe3d0b2daa;hb=322c8667eecfd313a24523a489b06b8454005d68;hp=061f3009ccabb6fa9533b826f97a0eadae88f12c;hpb=4a8314a1bba69c0ca6ea33bd11d7e4cf9aa0f65d;p=rocksndiamonds.git diff --git a/src/game_em/init.c b/src/game_em/init.c index 061f3009..da8ebd64 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -384,6 +384,8 @@ int open_all(void) } #endif +#if 0 /* BITMAP CREATION STUFF */ + for (i = 0; i < 4; i++) { name[MAXNAME] = 0; @@ -424,7 +426,6 @@ int open_all(void) ttlmaskBitmap = pcxBitmaps[3]->clip_mask; #endif -#if 1 for (i = 0; i < 4; i++) { Pixmap clip_mask; @@ -496,11 +497,13 @@ int open_all(void) #if 0 printf("::: CREATING NEW CLIPMASKS ...\n"); #endif + #if 1 clip_mask = Pixmap_to_Mask(pcxBitmapsX2[i]->drawable, pcxBitmapsX2[i]->width, pcxBitmapsX2[i]->height); #endif + #if 0 printf("::: CREATING NEW CLIPMASKS DONE\n"); #endif @@ -539,6 +542,12 @@ int open_all(void) #endif } +#endif /* BITMAP CREATION STUFF */ + +#if 1 + SetBitmaps_EM(pcxBitmapsX2); +#endif + objBitmap = pcxBitmapsX2[0]; botBitmap = pcxBitmapsX2[1]; sprBitmap = pcxBitmapsX2[2]; @@ -554,7 +563,6 @@ int open_all(void) sprmaskBitmap = pcxBitmapsX2[2]->clip_mask; ttlmaskBitmap = pcxBitmapsX2[3]->clip_mask; #endif -#endif #if 1 screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,