projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20140115-2-src
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index f7735c70b012d6d945adeef60a57266b63f955a9..5766b7af56bcdd6f0944069c5d004a63c5742c36 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-2957,7
+2957,7
@@
void DrawMiniLevel(int size_x, int size_y, int scroll_x, int scroll_y)
redraw_mask |= REDRAW_FIELD;
}
redraw_mask |= REDRAW_FIELD;
}
-static void DrawPreviewLevelExt(int from_x, int from_y)
+static void DrawPreviewLevel
Playfield
Ext(int from_x, int from_y)
{
boolean show_level_border = (BorderElement != EL_EMPTY);
int level_xsize = lev_fieldx + (show_level_border ? 2 : 0);
{
boolean show_level_border = (BorderElement != EL_EMPTY);
int level_xsize = lev_fieldx + (show_level_border ? 2 : 0);
@@
-3093,7
+3093,7
@@
static void DrawPreviewLevelLabelExt(int mode)
redraw_mask |= REDRAW_MICROLEVEL;
}
redraw_mask |= REDRAW_MICROLEVEL;
}
-
void DrawPreviewLevel
(boolean restart)
+
static void DrawPreviewLevelExt
(boolean restart)
{
static unsigned int scroll_delay = 0;
static unsigned int label_delay = 0;
{
static unsigned int scroll_delay = 0;
static unsigned int label_delay = 0;
@@
-3130,7
+3130,7
@@
void DrawPreviewLevel(boolean restart)
label_state = 1;
label_counter = 0;
label_state = 1;
label_counter = 0;
- DrawPreviewLevelExt(from_x, from_y);
+ DrawPreviewLevel
Playfield
Ext(from_x, from_y);
DrawPreviewLevelLabelExt(label_state);
/* initialize delay counters */
DrawPreviewLevelLabelExt(label_state);
/* initialize delay counters */
@@
-3232,7
+3232,7
@@
void DrawPreviewLevel(boolean restart)
break;
}
break;
}
- DrawPreviewLevelExt(from_x, from_y);
+ DrawPreviewLevel
Playfield
Ext(from_x, from_y);
}
/* !!! THIS ALL SUCKS -- SHOULD BE CLEANLY REWRITTEN !!! */
}
/* !!! THIS ALL SUCKS -- SHOULD BE CLEANLY REWRITTEN !!! */
@@
-3279,6
+3279,16
@@
void DrawPreviewLevel(boolean restart)
game_status = last_game_status; /* restore current game status */
}
game_status = last_game_status; /* restore current game status */
}
+void DrawPreviewLevelInitial()
+{
+ DrawPreviewLevelExt(TRUE);
+}
+
+void DrawPreviewLevelAnimation()
+{
+ DrawPreviewLevelExt(FALSE);
+}
+
inline void DrawGraphicAnimationExt(DrawBuffer *dst_bitmap, int x, int y,
int graphic, int sync_frame, int mask_mode)
{
inline void DrawGraphicAnimationExt(DrawBuffer *dst_bitmap, int x, int y,
int graphic, int sync_frame, int mask_mode)
{