X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Finit.c;h=0f380e5845e4640cc442094f0a806f63f43b27a8;hb=ac592f78bbedc4808c5e35fb22bc8fc9f0398c8d;hp=1c36d12bf0efa5dcb39c46059e77a3948e9ae4bf;hpb=e63e92923fa0196ba7d538d4c8f5a16994e3bee8;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index 1c36d12b..0f380e58 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -8,12 +8,23 @@ Bitmap *sp_objects; Bitmap *screenBitmap; +static void BlitScreenToBitmap_SP__Stage_Blt() +{ + BlitScreenToBitmap_SP(window); +} + void sp_open_all() { 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; } void sp_close_all()