Source code of Windows XP (NT5)
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.

65 lines
1.0 KiB

  1. /************/
  2. /* grafix.h */
  3. /************/
  4. /*** Bitmaps ***/
  5. #define dxBlk 22
  6. #define dyBlk 15
  7. #define dxBall 37
  8. #define dyBall 18
  9. #define dxEdge 12
  10. #define dyEdge 12
  11. #define dypGridOff dyEdge
  12. #define dyLevel 4 /* 10 */
  13. #define dxSlant dyBlk
  14. #define dyBlkDiff (dyBall-dyBlk)
  15. #define dxGridOff dxEdge
  16. #define dyGridOff dyEdge
  17. #define dxpGridMax ((dxBall-1)<<2)
  18. #define dypGridMax (((dyBall<<2) + dyLevel) << 2)
  19. #define RGB_WHITE 0x00FFFFFF
  20. #define RGB_LTGRAY 0x00C0C0C0
  21. #define RGB_GRAY 0x00808080
  22. #define RGB_BLACK 0x00000000
  23. /*** Macros ***/
  24. #ifdef DEBUG
  25. //-protect-#define Oops(szMsg)
  26. // MessageBox(NULL, szMsg, "Oops", MB_OK | MB_ICONHAND)
  27. #else
  28. #define Oops(szMsg)
  29. #endif
  30. /*** Routines ***/
  31. BOOL FInitLocal(VOID);
  32. VOID CleanUp(VOID);
  33. VOID DisplayBall(INT, INT);
  34. VOID DrawScreen(HDC);
  35. VOID DisplayScreen(VOID);
  36. VOID DisplayBoard(VOID);
  37. VOID DisplayGrid(VOID);
  38. VOID DoFlash(BOOL);
  39. VOID SetupBoard(VOID);
  40. VOID PlaceBall(INT, INT);
  41. VOID ReDoDisplay(VOID);
  42. VOID GetTheBitmap(VOID);
  43.