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.

114 lines
1.8 KiB

  1. //
  2. // Default VGA pixel values
  3. //
  4. #define VGAPIX_BLACK 0
  5. #define VGAPIX_BLUE 1
  6. #define VGAPIX_GREEN 2
  7. #define VGAPIX_CYAN 3
  8. #define VGAPIX_RED 4
  9. #define VGAPIX_MAGENTA 5
  10. #define VGAPIX_YELLOW 6
  11. #define VGAPIX_LIGHT_GRAY 7
  12. #define VGAPIX_DARK_GRAY 8
  13. #define VGAPIX_LIGHT_BLUE 9
  14. #define VGAPIX_LIGHT_GREEN 10
  15. #define VGAPIX_LIGHT_CYAN 11
  16. #define VGAPIX_LIGHT_RED 12
  17. #define VGAPIX_LIGHT_MAGENTA 13
  18. #define VGAPIX_LIGHT_YELLOW 14
  19. #define VGAPIX_WHITE 15
  20. //
  21. // Illegal value, used to make pixels transparent
  22. //
  23. #define VGAPIX_TRANSPARENT 16
  24. VOID
  25. _far
  26. VgaInit(
  27. VOID
  28. );
  29. VOID
  30. _far
  31. VgaClearScreen(
  32. IN BYTE PixelValue
  33. );
  34. VOID
  35. _far
  36. VgaClearRegion(
  37. IN USHORT x,
  38. IN USHORT y,
  39. IN USHORT w,
  40. IN USHORT h,
  41. IN BYTE PixelValue
  42. );
  43. VOID
  44. _far
  45. VgaBitBlt(
  46. IN USHORT x,
  47. IN USHORT y,
  48. IN USHORT w,
  49. IN USHORT h,
  50. IN USHORT BytesPerRow,
  51. IN BOOL IsColor,
  52. IN FPBYTE PixelMap,
  53. IN FPVOID Data
  54. );
  55. BOOL
  56. _far
  57. VgaDisplayBitmapFromFile(
  58. IN FPCHAR Filename,
  59. IN USHORT x,
  60. IN USHORT y,
  61. IN FPVOID ScratchBuffer,
  62. IN UINT ScratchBufferSize
  63. );
  64. FPVOID
  65. _far
  66. VgaSaveBlock(
  67. IN USHORT x,
  68. IN USHORT y,
  69. IN USHORT w,
  70. IN USHORT h,
  71. OUT FPUSHORT BytesPerRow
  72. );
  73. BOOL
  74. _far
  75. FontLoadAndInit(
  76. IN FPCHAR Filename
  77. );
  78. VOID
  79. _far
  80. FontGetInfo(
  81. OUT FPBYTE Width,
  82. OUT FPBYTE Height
  83. );
  84. VOID
  85. _far
  86. FontWriteChar(
  87. IN UCHAR c,
  88. IN USHORT x,
  89. IN USHORT y,
  90. IN BYTE ForegroundPixelValue,
  91. IN BYTE BackgroundPixelValue
  92. );
  93. VOID
  94. _far
  95. FontWriteString(
  96. IN UCHAR *String,
  97. IN USHORT x,
  98. IN USHORT y,
  99. IN BYTE ForegroundPixelValue,
  100. IN BYTE BackgroundPixelValue
  101. );