Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / drivers / dd / vga / miniport / vgavideo.h
index 67c1e16..73334a3 100644 (file)
@@ -1,12 +1,14 @@
-#include <ddk/ntddk.h>
-#include <ddk/ntddvid.h>
+#define NTOS_KERNEL_MODE
+#include <ntos.h>
+#include <ntos/ntddvid.h>
+#include <ddk/ntddvdeo.h>
 
 #define VGA_NORMAL 0
 #define VGA_AND    8
 #define VGA_OR     16
 #define VGA_XOR    24
 
-typedef struct { int quot, rem; } div_t;
+//typedef struct { int quot, rem; } div_t;
 
 int maskbit[640], y80[480], xconv[640], bit8[640], startmasks[8], endmasks[8];
 
@@ -24,9 +26,9 @@ typedef struct _VideoMode {
   unsigned short VidSeg;
   unsigned char  Misc;
   unsigned char  Feature;
-  unsigned char  Seq[5];
-  unsigned char  Crtc[25];
-  unsigned char  Gfx[9];
+  unsigned short Seq[6];
+  unsigned short Crtc[25];
+  unsigned short Gfx[9];
   unsigned char  Attrib[21];
 } VideoMode;