X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Finit.c;h=5a234b3c8150953f63b859d1aa1f174707e8d3f5;hb=fe656a41b406b06d9dc5b93d01191d52b1da3b4d;hp=1c36d12bf0efa5dcb39c46059e77a3948e9ae4bf;hpb=e63e92923fa0196ba7d538d4c8f5a16994e3bee8;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index 1c36d12b..5a234b3c 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -8,12 +8,33 @@ Bitmap *sp_objects; Bitmap *screenBitmap; +static void BlitScreenToBitmap_SP__Stage_Blt() +{ + BlitScreenToBitmap_SP(window); +} + void sp_open_all() { +#if 1 + printf("::: sp_open_all ...\n"); +#endif + + Form_Load(); + SetBitmaps_SP(&sp_objects); 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()