projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091022-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
init.c
diff --git
a/src/game_sp/init.c
b/src/game_sp/init.c
index 5a234b3c8150953f63b859d1aa1f174707e8d3f5..736211c8642a97759295c406ba800bd8765bb5b7 100644
(file)
--- a/
src/game_sp/init.c
+++ b/
src/game_sp/init.c
@@
-7,34
+7,56
@@
Bitmap *sp_objects;
Bitmap *screenBitmap;
Bitmap *screenBitmap;
-
+#if 0
static void BlitScreenToBitmap_SP__Stage_Blt()
{
BlitScreenToBitmap_SP(window);
}
static void BlitScreenToBitmap_SP__Stage_Blt()
{
BlitScreenToBitmap_SP(window);
}
+#endif
-
void sp_open_all
()
+
static void init_struct_functions
()
{
#if 1
{
#if 1
- printf("::: sp_open_all ...\n");
+ Stage.Blt = &DDScrollBuffer_Blt;
+#else
+ Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
#endif
#endif
- Form_Load();
+ Stage.ScrollTo = &DDScrollBuffer_ScrollTo;
+ Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
+ Stage.SoftScrollTo = &DDScrollBuffer_SoftScrollTo;
- SetBitmaps_SP(&sp_objects);
+ StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
+}
- screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
- DEFAULT_DEPTH);
+static void init_global_values()
+{
+ menBorder.Checked = True * 0;
+ menPanel.Checked = True;
+ menAutoScroll.Checked = True;
- StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
+ MainForm.picPane.Width = picPane.Width = SCR_FIELDX * TILEX;
+ MainForm.picPane.Height = picPane.Height = SCR_FIELDY * TILEY;
+}
- DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
+void sp_open_all()
+{
+ init_struct_functions();
+ init_global_values();
- Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
+ Form_Load();
+
+ SetBitmaps_SP(&sp_objects);
#if 1
#if 1
- printf("::: sp_open_all done\n");
+ screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
+ DEFAULT_DEPTH);
+#else
+ screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
+ DEFAULT_DEPTH);
#endif
#endif
+
+ DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
}
void sp_close_all()
}
void sp_close_all()