rnd-20090722-1-src
[rocksndiamonds.git] / src / game_sp / init.c
index c1fbcc7bb222e9ecd9ad4d8ce9000784a4c25b50..1324d8e35f4fe57a7b00cadd26888f33c5a8390e 100644 (file)
@@ -7,15 +7,20 @@ Bitmap *sp_objects;
 
 Bitmap *screenBitmap;
 
-
+#if 0
 static void BlitScreenToBitmap_SP__Stage_Blt()
 {
   BlitScreenToBitmap_SP(window);
 }
+#endif
 
 static void init_struct_functions()
 {
+#if 1
+  Stage.Blt = &DDScrollBuffer_Blt;
+#else
   Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
+#endif
 
   Stage.ScrollTo      = &DDScrollBuffer_ScrollTo;
   Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
@@ -24,16 +29,32 @@ static void init_struct_functions()
   StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
 }
 
+static void init_global_values()
+{
+  menBorder.Checked = True * 0;
+  menPanel.Checked = True;
+  menAutoScroll.Checked = True;
+
+  MainForm.picPane.Width = picPane.Width = 1935;
+  MainForm.picPane.Height = picPane.Height = 1635;
+}
+
 void sp_open_all()
 {
   init_struct_functions();
+  init_global_values();
 
   Form_Load();
 
   SetBitmaps_SP(&sp_objects);
 
+#if 1
+  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);
 }