Windows (VC6) build fixes, 03/##: HMONITOR type hack for h3 and h5.
This commit is contained in:
@@ -102,6 +102,11 @@ static char *bufTypeNames[] = {
|
||||
#if defined( __WIN32__) && defined(HWC_ACCESS_DDRAW)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
#include <ddraw.h>
|
||||
|
||||
#define NUM_BUFS 6
|
||||
|
||||
@@ -666,7 +666,10 @@ static FxBool resolutionSupported[HWC_MAX_BOARDS][0xF];
|
||||
#ifdef HWC_EXT_INIT
|
||||
static hwcBoardInfo *curBI;
|
||||
|
||||
typedef void *HMONITOR;
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM);
|
||||
typedef WINUSERAPI BOOL WINAPI
|
||||
EnumDisplayMonitors_func( HDC hdc,
|
||||
|
||||
@@ -67,6 +67,10 @@ _parseFilename(char *name)
|
||||
static int _set_exclusive_relaxed;
|
||||
static int _set_vidmode_relaxed;
|
||||
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
typedef struct _enumInfoStruct {
|
||||
GUID guid;
|
||||
HMONITOR hmon;
|
||||
|
||||
@@ -110,6 +110,11 @@ static char *bufTypeNames[] = {
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
#include <ddraw.h>
|
||||
|
||||
#define NUM_BUFS 6
|
||||
@@ -251,7 +256,6 @@ _dxDDrawToGlideDesc(hwcBufferDesc *pDesc)
|
||||
|
||||
/* XXXTACOHACK -- The required header file isn't shipping yet - decls will be removed at some
|
||||
future time */
|
||||
typedef void *HMONITOR;
|
||||
typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXA)(GUID FAR *, LPSTR, LPSTR, LPVOID, HMONITOR);
|
||||
extern HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback,
|
||||
LPVOID lpContext, DWORD dwFlags);
|
||||
|
||||
@@ -1090,10 +1090,10 @@ initSlave(hwcBoardInfo *bInfo, FxU32 chipNum);
|
||||
//static hwcBoardInfo *curBI = NULL;
|
||||
|
||||
#ifdef HWC_EXT_INIT
|
||||
//#ifndef HMONITOR_DECLARED // AJB- Make def compatible w/ vc6 headers
|
||||
//typedef void *HMONITOR;
|
||||
//#define HMONITOR_DECLARED
|
||||
//#endif
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM);
|
||||
typedef WINUSERAPI BOOL WINAPI
|
||||
EnumDisplayMonitors_func( HDC hdc,
|
||||
|
||||
@@ -69,6 +69,10 @@ static int _set_exclusive_relaxed;
|
||||
static int _set_vidmode_relaxed;
|
||||
static FxBool _set_multirendering;
|
||||
|
||||
#if (WINVER < 0x0500) && !defined(HMONITOR_DECLARED) /* <--- HACK */
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
typedef struct _enumInfoStruct {
|
||||
GUID guid;
|
||||
HMONITOR hmon;
|
||||
|
||||
Reference in New Issue
Block a user