X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.h;h=b73b10d1646292c5284854ae7e7d597750d48fdd;hb=97f03ad86e7458be79933d91363a38c4d2e35deb;hp=8f6289633cb1d42f82bae14171a9bb4c1fd4ffe0;hpb=f58e776feec767136f4a8f4b62e0103d13c0a910;p=rocksndiamonds.git diff --git a/src/tools.h b/src/tools.h index 8f628963..b73b10d1 100644 --- a/src/tools.h +++ b/src/tools.h @@ -33,21 +33,10 @@ #define USE_MASKING 1 /* for MoveDoor */ -#if 0 -#define DOOR_1 (1 << 0) -#define DOOR_2 (1 << 1) -#define DOOR_OPEN (1 << 2) -#define DOOR_CLOSE (1 << 3) -#define DOOR_OPEN_1 (DOOR_1 | DOOR_OPEN) -#define DOOR_OPEN_2 (DOOR_2 | DOOR_OPEN) -#define DOOR_CLOSE_1 (DOOR_1 | DOOR_CLOSE) -#define DOOR_CLOSE_2 (DOOR_2 | DOOR_CLOSE) -#else #define DOOR_OPEN_1 (1 << 0) #define DOOR_OPEN_2 (1 << 1) #define DOOR_CLOSE_1 (1 << 2) #define DOOR_CLOSE_2 (1 << 3) -#endif #define DOOR_OPEN_ALL (DOOR_OPEN_1 | DOOR_OPEN_2) #define DOOR_CLOSE_ALL (DOOR_CLOSE_1 | DOOR_CLOSE_2) #define DOOR_ACTION_1 (DOOR_OPEN_1 | DOOR_CLOSE_1) @@ -91,7 +80,11 @@ void DrawMaskedBorder_ALL(); void DrawMaskedBorder(int); void SetDrawtoField(int); +#if 1 +void RedrawPlayfield(); +#else void RedrawPlayfield(boolean, int, int, int, int); +#endif void BlitScreenToBitmap(Bitmap *); void BackToFront(); @@ -187,13 +180,14 @@ void DrawMiniElementOrWall(int, int, int, int); void ShowEnvelope(int); void ShowEnvelopeDoor(char *text, int); -void DrawLevel(void); +void DrawLevel(int); void DrawMiniLevel(int, int, int, int); void DrawPreviewLevelInitial(void); void DrawPreviewLevelAnimation(void); -void WaitForEventToContinue(); +void WaitForEventToContinue(void); boolean Request(char *, unsigned int); +void InitGraphicCompatibilityInfo_Doors(void); void InitDoors(void); unsigned int OpenDoor(unsigned int); unsigned int CloseDoor(unsigned int);