rnd-20100315-2-src
[rocksndiamonds.git] / src / game_sp / init.c
index 76e690e159383f53e07bf4ed2f47acf9756c9ba5..f79e20b0684034bddf3d0d8f2711de3c96ac5b85 100644 (file)
@@ -3,8 +3,6 @@
 #include "global.h"
 
 
-Bitmap *sp_objects;
-
 Bitmap *screenBitmap;
 
 struct EngineSnapshotInfo_SP engine_snapshot_sp;
@@ -16,7 +14,7 @@ static void init_struct_functions()
   Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
   Stage.SoftScrollTo  = &DDScrollBuffer_SoftScrollTo;
 
-  StretchedSprites.BltEx  = &DDSpriteBuffer_BltEx;
+  // StretchedSprites.BltEx  = &DDSpriteBuffer_BltEx;
   StretchedSprites.BltImg = &DDSpriteBuffer_BltImg;
 }
 
@@ -37,20 +35,10 @@ void sp_open_all()
 
   Form_Load();
 
-  SetBitmaps_SP(&sp_objects);
-
-#if 0
-  /* too small for oversized levels, but too big for graphics performance */
-  /* (the whole playfield is drawn/updated, not only visible/scrolled area) */
-  /* !!! FIX THIS !!! */
-  screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
-                              DEFAULT_DEPTH);
-#else
   screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
                               DEFAULT_DEPTH);
-#endif
 
-  DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
+  DDSpriteBuffer_Init();
 }
 
 void sp_close_all()
@@ -84,8 +72,6 @@ unsigned int InitEngineRandom_SP(long seed)
 /* Supaplex game engine snapshot handling functions                          */
 /* ------------------------------------------------------------------------- */
 
-static ListNode *engine_snapshot_list_sp = NULL;
-
 void SaveEngineSnapshotValues_SP()
 {
   int i;