X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Finit.c;h=c1fbcc7bb222e9ecd9ad4d8ce9000784a4c25b50;hb=6aaf28a58767bcc79a55cb3afbc8828fd4a16a6b;hp=5a234b3c8150953f63b859d1aa1f174707e8d3f5;hpb=fe656a41b406b06d9dc5b93d01191d52b1da3b4d;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index 5a234b3c..c1fbcc7b 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -13,11 +13,20 @@ static void BlitScreenToBitmap_SP__Stage_Blt() 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(); @@ -26,15 +35,7 @@ void sp_open_all() 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()