X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=5bc49709063904ac39288ec9d65a23c0a6784ecf;hb=e985382cdedf6fbfb89d64e429c0da56754b9e7c;hp=b1adf481f5ed1e98b1506edca81ef7be3bb345a9;hpb=d7bb50dd6727a25908eaecca817b361d9b09158e;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index b1adf481..5bc49709 100644 --- 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) + { XCopyArea(display,backbuffer,window,gc, REAL_SX,REAL_SY, FULL_SXSIZE,FULL_SYSIZE, REAL_SX,REAL_SY); + } else { int fx = FX, fy = FY; @@ -1682,8 +1684,6 @@ boolean Request(char *text, unsigned int req_state) text += tl + (tc == 32 ? 1 : 0); } - - #if 0 if (req_state & REQ_ASK) { @@ -1727,8 +1727,6 @@ boolean Request(char *text, unsigned int req_state) #endif - - OpenDoor(DOOR_OPEN_1); ClearEventQueue(); @@ -1756,7 +1754,10 @@ boolean Request(char *text, unsigned int req_state) case ButtonRelease: case MotionNotify: { + +#if 0 int choice; +#endif if (event.type == MotionNotify) { @@ -2087,7 +2088,15 @@ unsigned int MoveDoor(unsigned int door_state) redraw_mask |= REDRAW_DOOR_2; } + + +#if 1 BackToFront(); +#else + XCopyArea(display, drawto, window, gc, DX, DY, DXSIZE, DYSIZE, DX, DY); +#endif + + if (game_status == MAINMENU) DoAnimation();