mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Beta matching in mxdirectxinfo.cpp (#1626)
* Use goto * Fix constructors * Reorder error strings * Compat mode todo * Rename p_context to p_d * Use count variable * Fix typo
This commit is contained in:
@@ -63,7 +63,7 @@ private:
|
||||
|
||||
// SIZE 0x1a4
|
||||
struct Direct3DDeviceInfo {
|
||||
Direct3DDeviceInfo() {}
|
||||
Direct3DDeviceInfo();
|
||||
~Direct3DDeviceInfo();
|
||||
Direct3DDeviceInfo(
|
||||
LPGUID p_guid,
|
||||
@@ -112,9 +112,8 @@ struct MxDisplayMode {
|
||||
|
||||
// SIZE 0x190
|
||||
struct MxDriver {
|
||||
MxDriver() {}
|
||||
MxDriver();
|
||||
~MxDriver();
|
||||
MxDriver(LPGUID p_guid);
|
||||
MxDriver(LPGUID p_guid, LPCSTR p_driverDesc, LPCSTR p_driverName);
|
||||
|
||||
void Init(LPGUID p_guid, LPCSTR p_driverDesc, LPCSTR p_driverName);
|
||||
@@ -205,16 +204,15 @@ public:
|
||||
);
|
||||
const char* EnumerateErrorToString(HRESULT p_error);
|
||||
static void BuildErrorString(const char*, ...);
|
||||
static BOOL CALLBACK
|
||||
DirectDrawEnumerateCallback(LPGUID p_guid, LPSTR p_driverDesc, LPSTR p_driverName, LPVOID p_context);
|
||||
static HRESULT CALLBACK DisplayModesEnumerateCallback(LPDDSURFACEDESC p_ddsd, LPVOID p_context);
|
||||
static BOOL CALLBACK DirectDrawEnumerateCallback(LPGUID p_guid, LPSTR p_driverDesc, LPSTR p_driverName, LPVOID p_d);
|
||||
static HRESULT CALLBACK DisplayModesEnumerateCallback(LPDDSURFACEDESC p_ddsd, LPVOID p_d);
|
||||
static HRESULT CALLBACK DevicesEnumerateCallback(
|
||||
LPGUID p_guid,
|
||||
LPSTR p_deviceDesc,
|
||||
LPSTR p_deviceName,
|
||||
LPD3DDEVICEDESC p_HWDesc,
|
||||
LPD3DDEVICEDESC p_HELDesc,
|
||||
LPVOID p_context
|
||||
LPVOID p_d
|
||||
);
|
||||
|
||||
friend class MxDirect3D;
|
||||
|
||||
Reference in New Issue
Block a user