mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2025-03-04 11:57:35 +00:00
decomp: fix warnings on MinGW
This commit is contained in:
parent
37c2d929a7
commit
38bf87d282
@ -2115,7 +2115,7 @@ void __cdecl Enumerate3DDevices(DISPLAY_ADAPTER *const adapter)
|
||||
{
|
||||
if (D3DCreate()) {
|
||||
g_D3D->lpVtbl->EnumDevices(
|
||||
g_D3D, Enum3DDevicesCallback, (LPVOID)adapter);
|
||||
g_D3D, (void *)Enum3DDevicesCallback, (LPVOID)adapter);
|
||||
D3DRelease();
|
||||
}
|
||||
}
|
||||
@ -2492,7 +2492,8 @@ BOOL WINAPI EnumDisplayAdaptersCallback(
|
||||
|
||||
DDCAPS_DX5 driver_caps = { .dwSize = sizeof(DDCAPS_DX5), 0 };
|
||||
DDCAPS_DX5 hel_caps = { .dwSize = sizeof(DDCAPS_DX5), 0 };
|
||||
if (FAILED(g_DDraw->lpVtbl->GetCaps(g_DDraw, &driver_caps, &hel_caps))) {
|
||||
if (FAILED(g_DDraw->lpVtbl->GetCaps(
|
||||
g_DDraw, (void *)&driver_caps, (void *)&hel_caps))) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -2,10 +2,18 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef DirectDrawCreate
|
||||
#undef DirectDrawCreate
|
||||
#endif
|
||||
|
||||
#define DirectDrawCreate \
|
||||
((HRESULT(__stdcall *)( \
|
||||
GUID * driver_guid, LPDIRECTDRAW * ddraw, LPUNKNOWN outer))0x00458CF4)
|
||||
|
||||
#ifdef DirectDrawEnumerate
|
||||
#undef DirectDrawEnumerate
|
||||
#endif
|
||||
|
||||
#define DirectDrawEnumerate \
|
||||
((HRESULT(__stdcall *)( \
|
||||
LPDDENUMCALLBACKA lpCallback, LPVOID lpContext))0x00458CFA)
|
||||
|
Loading…
x
Reference in New Issue
Block a user