You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.1 KiB
66 lines
1.1 KiB
/******************/
|
|
/* file: grafix.h */
|
|
/******************/
|
|
|
|
/*** Bitmaps ***/
|
|
|
|
#define dxBlk 16
|
|
#define dyBlk 16
|
|
|
|
#define dxLed 13
|
|
#define dyLed 23
|
|
|
|
#define dxButton 24
|
|
#define dyButton 24
|
|
|
|
#define dxFudge 2
|
|
|
|
#define dxLeftSpace 12
|
|
#define dxRightSpace 12
|
|
#define dyTopSpace 12
|
|
#define dyBottomSpace 12
|
|
|
|
#define dxGridOff dxLeftSpace
|
|
#define dyGridOff (dyTopLed+dyLed+16)
|
|
|
|
#define dxLeftBomb (dxLeftSpace + 5)
|
|
#define dxRightTime (dxRightSpace + 5)
|
|
#define dyTopLed (dyTopSpace + 4)
|
|
|
|
|
|
/*** Macros ***/
|
|
|
|
#ifdef DEBUG
|
|
|
|
//-protect-#define Oops(szMsg)
|
|
// MessageBox(NULL, szMsg, "Oops", MB_OK | MB_ICONHAND)
|
|
|
|
#else
|
|
#define Oops(szMsg)
|
|
#endif
|
|
|
|
|
|
|
|
/*** Routines ***/
|
|
|
|
BOOL FInitLocal(VOID);
|
|
VOID CleanUp(VOID);
|
|
|
|
VOID DrawBlk(HDC, INT, INT);
|
|
VOID DisplayBlk(INT, INT);
|
|
|
|
VOID DrawButton(HDC, INT);
|
|
VOID DisplayButton(INT);
|
|
VOID DrawGrid(HDC);
|
|
VOID DisplayGrid(VOID);
|
|
VOID DrawBombCount(HDC);
|
|
VOID DisplayBombCount(VOID);
|
|
VOID DrawTime(HDC);
|
|
VOID DisplayTime(VOID);
|
|
VOID DrawScreen(HDC);
|
|
VOID DisplayScreen(VOID);
|
|
|
|
BOOL FLoadBitmaps(VOID);
|
|
VOID FreeBitmaps(VOID);
|
|
|
|
|