projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990126-1
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index b1adf481f5ed1e98b1506edca81ef7be3bb345a9..5bc49709063904ac39288ec9d65a23c0a6784ecf 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-126,9
+126,11
@@
void BackToFront()
if (redraw_mask & REDRAW_FIELD)
{
if (game_status != PLAYING || redraw_mask & REDRAW_FROM_BACKBUFFER)
if (redraw_mask & REDRAW_FIELD)
{
if (game_status != PLAYING || redraw_mask & REDRAW_FROM_BACKBUFFER)
+ {
XCopyArea(display,backbuffer,window,gc,
REAL_SX,REAL_SY, FULL_SXSIZE,FULL_SYSIZE,
REAL_SX,REAL_SY);
XCopyArea(display,backbuffer,window,gc,
REAL_SX,REAL_SY, FULL_SXSIZE,FULL_SYSIZE,
REAL_SX,REAL_SY);
+ }
else
{
int fx = FX, fy = FY;
else
{
int fx = FX, fy = FY;
@@
-1682,8
+1684,6
@@
boolean Request(char *text, unsigned int req_state)
text += tl + (tc == 32 ? 1 : 0);
}
text += tl + (tc == 32 ? 1 : 0);
}
-
-
#if 0
if (req_state & REQ_ASK)
{
#if 0
if (req_state & REQ_ASK)
{
@@
-1727,8
+1727,6
@@
boolean Request(char *text, unsigned int req_state)
#endif
#endif
-
-
OpenDoor(DOOR_OPEN_1);
ClearEventQueue();
OpenDoor(DOOR_OPEN_1);
ClearEventQueue();
@@
-1756,7
+1754,10
@@
boolean Request(char *text, unsigned int req_state)
case ButtonRelease:
case MotionNotify:
{
case ButtonRelease:
case MotionNotify:
{
+
+#if 0
int choice;
int choice;
+#endif
if (event.type == MotionNotify)
{
if (event.type == MotionNotify)
{
@@
-2087,7
+2088,15
@@
unsigned int MoveDoor(unsigned int door_state)
redraw_mask |= REDRAW_DOOR_2;
}
redraw_mask |= REDRAW_DOOR_2;
}
+
+
+#if 1
BackToFront();
BackToFront();
+#else
+ XCopyArea(display, drawto, window, gc, DX, DY, DXSIZE, DYSIZE, DX, DY);
+#endif
+
+
if (game_status == MAINMENU)
DoAnimation();
if (game_status == MAINMENU)
DoAnimation();