rnd-20090721-1-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 #if 1
19   printf("::: sp_open_all ...\n");
20 #endif
21
22   Form_Load();
23
24   SetBitmaps_SP(&sp_objects);
25
26   screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
27                               DEFAULT_DEPTH);
28
29   StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
30
31   DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
32
33   Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
34
35 #if 1
36   printf("::: sp_open_all done\n");
37 #endif
38 }
39
40 void sp_close_all()
41 {
42 }