- Much cleaner way to get blue building (remove ugly header hacks)
- Get bootvid working too.
Modified: trunk/reactos/drivers/dd/blue/blue.c
Modified: trunk/reactos/drivers/dd/bootvid/bootvid.c

Modified: trunk/reactos/drivers/dd/blue/blue.c
--- trunk/reactos/drivers/dd/blue/blue.c	2006-01-07 02:06:49 UTC (rev 20643)
+++ trunk/reactos/drivers/dd/blue/blue.c	2006-01-07 02:14:42 UTC (rev 20644)
@@ -12,25 +12,9 @@
 /* INCLUDES ******************************************************************/
 
 #include <ntddk.h>
-
-/* FIXME: W32API NEEDS TO BE FIXED */
-#ifdef _MSC_VER
-/*
- * Wincon.h can't be included due to missing user-mode types,
- * so we'll define them here 
- */
-typedef ULONG DWORD, *LPDWORD;
-typedef USHORT UINT, *LPWORD;
-typedef USHORT WORD;
-typedef UCHAR BYTE;
-typedef INT BOOL;
-typedef PVOID HWND;
-typedef PVOID LPVOID;
-#define WINAPI NTAPI
-#define APIENTRY WINAPI
+#include <windef.h>
 #define WINBASEAPI
 typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;
-#endif
 
 #include <wincon.h>
 #include <blue/ntddblue.h>

Modified: trunk/reactos/drivers/dd/bootvid/bootvid.c
--- trunk/reactos/drivers/dd/bootvid/bootvid.c	2006-01-07 02:06:49 UTC (rev 20643)
+++ trunk/reactos/drivers/dd/bootvid/bootvid.c	2006-01-07 02:14:42 UTC (rev 20644)
@@ -24,6 +24,7 @@
 /* INCLUDES ******************************************************************/
 
 #include <ntddk.h>
+#include <windef.h>
 #include <ndk/ldrfuncs.h>
 #include "bootvid.h"
 #include "ntbootvid.h"
@@ -78,7 +79,7 @@
 
 /* FUNCTIONS *****************************************************************/
 
-STATIC BOOLEAN FASTCALL
+static BOOLEAN FASTCALL
 InbvFindBootimage()
 {
    PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
@@ -119,7 +120,7 @@
 }
 
 
-STATIC BOOLEAN FASTCALL
+static BOOLEAN FASTCALL
 InbvMapVideoMemory(VOID)
 {
    PHYSICAL_ADDRESS PhysicalAddress;
@@ -131,7 +132,7 @@
 }
 
 
-STATIC BOOLEAN FASTCALL
+static BOOLEAN FASTCALL
 InbvUnmapVideoMemory(VOID)
 {
    MmUnmapIoSpace(VideoMemory, 0x10000);
@@ -139,7 +140,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 vgaPreCalc()
 {
    ULONG j;
@@ -158,7 +159,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 vgaSetRegisters(const VGA_REGISTERS *Registers)
 {
    UINT i;
@@ -246,7 +247,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 InbvSetColor(INT Index, UCHAR Red, UCHAR Green, UCHAR Blue)
 {
    WRITE_PORT_UCHAR(PELINDEX, Index);
@@ -256,7 +257,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 InbvSetBlackPalette()
 {
    register ULONG r = 0;
@@ -276,7 +277,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 InbvDisplayBitmap(ULONG Width, ULONG Height, PCHAR ImageData)
 {
    ULONG j, k, y;
@@ -322,7 +323,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 InbvDisplayCompressedBitmap()
 {
    PBITMAPV5HEADER bminfo;
@@ -470,7 +471,7 @@
 }
 
 
-STATIC VOID FASTCALL
+static VOID FASTCALL
 InbvFadeUpPalette()
 {
    PBITMAPV5HEADER bminfo;
@@ -542,7 +543,7 @@
 }
 
 
-STATIC VOID STDCALL
+static VOID STDCALL
 InbvBitmapThreadMain(PVOID Ignored)
 {
    if (InbvFindBootimage())
@@ -558,7 +559,7 @@
 }
 
 
-STATIC BOOLEAN STDCALL
+static BOOLEAN STDCALL
 VidInitialize(VOID)
 {
    NTSTATUS Status;