projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100207-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
init.c
diff --git
a/src/game_sp/init.c
b/src/game_sp/init.c
index 953b9ec8256a570d6643cd6d956a45870c7bba2c..5fb36f19d265af74699fea4965436e30d51822c2 100644
(file)
--- a/
src/game_sp/init.c
+++ b/
src/game_sp/init.c
@@
-7,31
+7,20
@@
Bitmap *sp_objects;
Bitmap *screenBitmap;
Bitmap *screenBitmap;
-#if 0
-static void BlitScreenToBitmap_SP__Stage_Blt()
-{
- BlitScreenToBitmap_SP(window);
-}
-#endif
-
static void init_struct_functions()
{
static void init_struct_functions()
{
-#if 1
- Stage.Blt = &DDScrollBuffer_Blt;
-#else
- Stage.Blt = &BlitScreenToBitmap_SP__Stage_Blt;
-#endif
-
+ Stage.Blt = &DDScrollBuffer_Blt;
Stage.ScrollTo = &DDScrollBuffer_ScrollTo;
Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
Stage.SoftScrollTo = &DDScrollBuffer_SoftScrollTo;
Stage.ScrollTo = &DDScrollBuffer_ScrollTo;
Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
Stage.SoftScrollTo = &DDScrollBuffer_SoftScrollTo;
- StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
+ StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
+ StretchedSprites.BltImg = &DDSpriteBuffer_BltImg;
}
static void init_global_values()
{
}
static void init_global_values()
{
- menBorder.Checked =
True * 0
;
+ menBorder.Checked =
False
;
menPanel.Checked = True;
menAutoScroll.Checked = True;
menPanel.Checked = True;
menAutoScroll.Checked = True;
@@
-48,7
+37,10
@@
void sp_open_all()
SetBitmaps_SP(&sp_objects);
SetBitmaps_SP(&sp_objects);
-#if 1
+#if 0
+ /* too small for oversized levels, but too big for graphics performance */
+ /* (the whole playfield is drawn/updated, not only visible/scrolled area) */
+ /* !!! FIX THIS !!! */
screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
DEFAULT_DEPTH);
#else
screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
DEFAULT_DEPTH);
#else
@@
-67,6
+59,10
@@
unsigned int InitEngineRandom_SP(long seed)
{
if (seed == NEW_RANDOMIZE)
{
{
if (seed == NEW_RANDOMIZE)
{
+#if 0
+ printf("::: init.c: InitEngineRandom_SP(): subRandomize()\n");
+#endif
+
subRandomize();
seed = (long)RandomSeed;
subRandomize();
seed = (long)RandomSeed;
@@
-74,5
+70,9
@@
unsigned int InitEngineRandom_SP(long seed)
RandomSeed = (short)seed;
RandomSeed = (short)seed;
+#if 0
+ printf("::: init.c: InitEngineRandom_SP(): RandomSeed == %d\n", RandomSeed);
+#endif
+
return (unsigned int) seed;
}
return (unsigned int) seed;
}