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:
MS
2025-07-15 10:43:40 -04:00
committed by GitHub
parent 3b79b4c834
commit 9c9baf3c3e
2 changed files with 182 additions and 173 deletions

View File

@@ -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;