projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060829-1-src
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 298a98bf45d893dba034070266f6296c269104c0..7a2fd3e29793c249ffe6c43a5c4fc5dd527edb38 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-138,7
+138,6
@@
void RedrawPlayfield(boolean force_redraw, int x, int y, int width, int height)
level.game_engine_type == GAME_ENGINE_TYPE_EM)
{
/* currently there is no partial redraw -- always redraw whole playfield */
level.game_engine_type == GAME_ENGINE_TYPE_EM)
{
/* currently there is no partial redraw -- always redraw whole playfield */
-
RedrawPlayfield_EM(TRUE);
/* blit playfield from scroll buffer to normal back buffer for fading in */
RedrawPlayfield_EM(TRUE);
/* blit playfield from scroll buffer to normal back buffer for fading in */
@@
-184,6
+183,14
@@
void RedrawPlayfield(boolean force_redraw, int x, int y, int width, int height)
}
}
}
}
+ if (force_redraw)
+ {
+ x = gfx.sx;
+ y = gfx.sy;
+ width = gfx.sxsize;
+ height = gfx.sysize;
+ }
+
BlitBitmap(drawto, window, x, y, width, height, x, y);
}
BlitBitmap(drawto, window, x, y, width, height, x, y);
}
@@
-2226,6
+2233,10
@@
void WaitForEventToContinue()
button_status = MB_RELEASED;
button_status = MB_RELEASED;
+#if 1
+ ClearEventQueue();
+#endif
+
while (still_wait)
{
if (PendingEvent())
while (still_wait)
{
if (PendingEvent())
@@
-5306,9
+5317,9
@@
int getGameFrameDelay_EM(int native_em_game_frame_delay)
unsigned int InitRND(long seed)
{
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
unsigned int InitRND(long seed)
{
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
- return InitEngineR
ND
_EM(seed);
+ return InitEngineR
andom
_EM(seed);
else
else
- return InitEngineRND(seed);
+ return InitEngineR
andom_R
ND(seed);
}
void InitGraphicInfo_EM(void)
}
void InitGraphicInfo_EM(void)