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.

60 lines
1.8 KiB

  1. /*****************************************************************************/
  2. /* Constant Definitions */
  3. /*****************************************************************************/
  4. #define VID_CALCTEXT 0x8000 /* mbbx 1.03 ... */
  5. #define VID_CALCBKGD 0x4000
  6. #define VID_CALCATTR 0x2000
  7. #define VID_BOLD 0x0001
  8. #define VID_REVERSE 0x0002
  9. #define VID_ITALIC 0x0004
  10. #define VID_UNDERLINE 0x0008
  11. #define VID_STRIKEOUT 0x0010
  12. #define VID_MASK (VID_BOLD | VID_REVERSE | VID_ITALIC | VID_UNDERLINE | VID_STRIKEOUT)
  13. #define VID_RED 0
  14. #define VID_GREEN 1
  15. #define VID_BLUE 2
  16. #define VID_MAXFONTCACHE 6 /* mbbx 1.04: per jtfx 1.1 ... */
  17. #define VID_DRAW_TOP 0x01 /* mbbx 1.04: per jtfx 1.1 ... */
  18. #define VID_DRAW_BOTTOM 0x02
  19. #define VID_DRAW_LEFT 0x04
  20. #define VID_DRAW_RIGHT 0x08
  21. #define VID_DRAW_SCAN1 0x10
  22. #define VID_DRAW_SCAN3 0x20
  23. #define VID_DRAW_SCAN7 0x40
  24. #define VID_DRAW_SCAN9 0x80
  25. /*****************************************************************************/
  26. /* Variable Declarations */
  27. /*****************************************************************************/
  28. struct /* mbbx 1.03 ... */
  29. {
  30. BYTE text[3];
  31. BYTE bkgd[3];
  32. WORD flags;
  33. } vidAttr[32];
  34. struct /* mbbx 1.04: per jtfx 1.1 ... */
  35. {
  36. HANDLE hFont;
  37. WORD flags;
  38. } vidFontCache[VID_MAXFONTCACHE];
  39. struct
  40. {
  41. BYTE buffer;
  42. BYTE display;
  43. } vidGraphChars[64];
  44. INT vidCharWidths[256];