mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
Merge 2d062c5cd6
into 12c2b2f81b
This commit is contained in:
commit
f0224d4ba4
4 changed files with 7 additions and 10 deletions
|
@ -1007,21 +1007,21 @@ namespace dxvk {
|
|||
float Z,
|
||||
DWORD Stencil) {
|
||||
StateChange();
|
||||
return GetD3D9()->Clear(Count, pRects, Flags, Color, Z, Stencil);
|
||||
return GetD3D9()->Clear(Count, reinterpret_cast<const d3d9::D3DRECT *>(pRects), Flags, Color, Z, Stencil);
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D8Device::SetTransform(D3DTRANSFORMSTATETYPE State, const D3DMATRIX* pMatrix) {
|
||||
StateChange();
|
||||
return GetD3D9()->SetTransform(d3d9::D3DTRANSFORMSTATETYPE(State), pMatrix);
|
||||
return GetD3D9()->SetTransform(d3d9::D3DTRANSFORMSTATETYPE(State), reinterpret_cast<const d3d9::D3DMATRIX *>(pMatrix));
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D8Device::GetTransform(D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) {
|
||||
return GetD3D9()->GetTransform(d3d9::D3DTRANSFORMSTATETYPE(State), pMatrix);
|
||||
return GetD3D9()->GetTransform(d3d9::D3DTRANSFORMSTATETYPE(State), reinterpret_cast<d3d9::D3DMATRIX *>(pMatrix));
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D8Device::MultiplyTransform(D3DTRANSFORMSTATETYPE TransformState, const D3DMATRIX* pMatrix) {
|
||||
StateChange();
|
||||
return GetD3D9()->MultiplyTransform(d3d9::D3DTRANSFORMSTATETYPE(TransformState), pMatrix);
|
||||
return GetD3D9()->MultiplyTransform(d3d9::D3DTRANSFORMSTATETYPE(TransformState), reinterpret_cast<const d3d9::D3DMATRIX *>(pMatrix));
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D8Device::SetViewport(const D3DVIEWPORT8* pViewport) {
|
||||
|
|
|
@ -181,9 +181,6 @@ namespace d3d9 {
|
|||
#define D3DDEVINFOID_VCACHE 4
|
||||
#endif
|
||||
|
||||
// MinGW headers are broken. Who'dve guessed?
|
||||
#ifndef _MSC_VER
|
||||
|
||||
// Missing from d3d8types.h
|
||||
#ifndef D3DDEVINFOID_RESOURCEMANAGER
|
||||
#define D3DDEVINFOID_RESOURCEMANAGER 5
|
||||
|
@ -197,7 +194,7 @@ namespace d3d9 {
|
|||
#define D3DPRESENT_RATE_UNLIMITED 0x7FFFFFFF
|
||||
#endif
|
||||
|
||||
#else // _MSC_VER
|
||||
#ifdef _MSC_VER
|
||||
|
||||
// These are enum typedefs in the MinGW headers, but not defined by Microsoft
|
||||
#define D3DVSDT_TYPE DWORD
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace dxvk {
|
||||
|
||||
class DxvkMemoryAllocator;
|
||||
class DxvkMemoryChunk;
|
||||
struct DxvkMemoryChunk;
|
||||
class DxvkSparsePageTable;
|
||||
class DxvkSharedAllocationCache;
|
||||
class DxvkResourceAllocation;
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace dxvk::wsi {
|
|||
// Get the device name of the monitor.
|
||||
MONITORINFOEXW monInfo;
|
||||
monInfo.cbSize = sizeof(monInfo);
|
||||
if (!::GetMonitorInfoW(hMonitor, &monInfo)) {
|
||||
if (!::GetMonitorInfoW(hMonitor, reinterpret_cast<MONITORINFO*>(&monInfo))) {
|
||||
Logger::err("getMonitorDevicePath: Failed to get monitor info.");
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue