rnd-20090719-2-src
[rocksndiamonds.git] / src / game_sp / init.c
1
2 #include "main_sp.h"
3 #include "global.h"
4
5
6 Bitmap *sp_objects;
7
8 Bitmap *screenBitmap;
9
10
11 static void BlitScreenToBitmap_SP__Stage_Blt()
12 {
13   BlitScreenToBitmap_SP(window);
14 }
15
16 void sp_open_all()
17 {
18   SetBitmaps_SP(&sp_objects);
19
20   screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
21                               DEFAULT_DEPTH);
22
23   StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
24
25   DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
26
27   Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
28 }
29
30 void sp_close_all()
31 {
32 }