BlitScreenToBitmap_SP(window);
}
+static void init_struct_functions()
+{
+ Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
+
+ Stage.ScrollTo = &DDScrollBuffer_ScrollTo;
+ Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
+ Stage.SoftScrollTo = &DDScrollBuffer_SoftScrollTo;
+
+ StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
+}
+
void sp_open_all()
{
-#if 1
- printf("::: sp_open_all ...\n");
-#endif
+ init_struct_functions();
Form_Load();
screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
DEFAULT_DEPTH);
- StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
-
DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
-
- Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
-
-#if 1
- printf("::: sp_open_all done\n");
-#endif
}
void sp_close_all()