From 49c2203275d1e8480f8778c8d8ce2a7947278b67 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Thu, 5 Jul 2001 17:34:00 +0000 Subject: [PATCH] Fixed rest of platform.h --- src/afont.c | 2 +- src/win95/platform.h | 45 +++++++++++++++++++++++--------------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/src/afont.c b/src/afont.c index 46ac394..bb7eaf7 100644 --- a/src/afont.c +++ b/src/afont.c @@ -635,7 +635,7 @@ void BLTString(FONT_DESC str_packet) int not_finished = Yes; int pos_x = str_packet.destx; int pos_y = str_packet.desty; - int white_space_width = CHAR_WIDTH(str_packet.fontnum, 0); + int white_space_width = CHAR_WIDTH(str_packet.fontnum, 0); // set up the font processing varibles depending on the type of font diff --git a/src/win95/platform.h b/src/win95/platform.h index 31a0d68..83dcb50 100644 --- a/src/win95/platform.h +++ b/src/win95/platform.h @@ -1,6 +1,8 @@ #ifndef PLATFORM_INCLUDED #define PLATFORM_INCLUDED +#include "shape.h" // struct imageheader + /* Platform Specific Header Include @@ -28,6 +30,16 @@ extern "C" { */ +typedef int BOOL; + +typedef struct RECT +{ + int left; + int top; + int right; + int bottom; +} RECT; + typedef RECT RECT_AVP; @@ -709,12 +721,12 @@ typedef struct trianglearray { long GetWindowsTickCount(void); void CheckForWindowsMessages(void); -BOOL ExitWindowsSystem(void); -BOOL InitialiseWindowsSystem(HANDLE hInstance, int nCmdShow, int WinInitMode); -void KeyboardHandlerKeyDown(WPARAM wParam); -void KeyboardHandlerKeyUp(WPARAM wParam); -void MouseVelocityHandler(UINT message, LPARAM lParam); -void MousePositionHandler(UINT message, LPARAM lParam); +//BOOL ExitWindowsSystem(void); +//BOOL InitialiseWindowsSystem(HANDLE hInstance, int nCmdShow, int WinInitMode); +//void KeyboardHandlerKeyDown(WPARAM wParam); +//void KeyboardHandlerKeyUp(WPARAM wParam); +//void MouseVelocityHandler(UINT message, LPARAM lParam); +//void MousePositionHandler(UINT message, LPARAM lParam); int ReadJoystick(void); int CheckForJoystick(void); BOOL SpawnRasterThread(); @@ -742,7 +754,7 @@ void finiObjectsExceptDD(void); BOOL TestMemoryAccess(void); int ChangePalette (unsigned char* NewPalette); int GetAvailableVideoMemory(void); -void HandleVideoModeRestarts(HINSTANCE hInstance, int nCmdShow); +//void HandleVideoModeRestarts(HINSTANCE hInstance, int nCmdShow); void* MakeBackdropSurface(void); void ReleaseBackdropSurface(void); void LockBackdropSurface(void); @@ -789,14 +801,6 @@ void WriteZB3dTexturedPolygonToExecuteBuffer(int* itemptr); void WriteZBGouraud3dTexturedPolygonToExecuteBuffer(int* itemptr); #endif -#ifdef __cplusplus -HRESULT WINAPI DeviceEnumerator(LPGUID lpGuid, - LPSTR lpDeviceDescription, LPSTR lpDeviceName, - LPD3DDEVICEDESC lpHWDesc, LPD3DDEVICEDESC lpHELDesc, LPVOID lpContext); -HRESULT CALLBACK TextureFormatsEnumerator - (LPDDSURFACEDESC lpDDSD, LPVOID lpContext); -#endif - /* KJL 11:28:31 9/9/97 - Direct Input prototypes */ BOOL InitialiseDirectInput(void); void ReleaseDirectInput(void); @@ -827,18 +831,17 @@ void FlushTextprintBuffer(void); void InitPrintQueue(void); void InitJoysticks(void); void ReadJoysticks(void); -int ChangeDisplayModes(HINSTANCE hInst, int nCmd, - int NewVideoMode, int NewWindowMode, - int NewZBufferMode, int NewRasterisationMode, - int NewSoftwareScanDrawMode, int NewDXMemoryMode); +//int ChangeDisplayModes(HINSTANCE hInst, int nCmd, +// int NewVideoMode, int NewWindowMode, +// int NewZBufferMode, int NewRasterisationMode, +// int NewSoftwareScanDrawMode, int NewDXMemoryMode); int DeallocateAllImages(void); int MinimizeAllImages(void); int RestoreAllImages(void); void ConvertDDToInternalPalette(unsigned char* src, unsigned char* dst, int length); PROCESSORTYPES ReadProcessorType(void); -/* EXTERNS FOR GLOBALS GO HERE !!!!!! */ -extern DDCAPS direct_draw_caps; +//extern DDCAPS direct_draw_caps; /*