Skip to content

Commit

Permalink
added support for 1080p resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
maltsevda committed May 14, 2019
1 parent 5aa45a6 commit fc99c94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FakeDirect3D9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ HMONITOR FakeDirect3D9::GetAdapterMonitor(UINT Adapter)

HRESULT FakeDirect3D9::CreateDevice(UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice9** ppReturnedDeviceInterface)
{
if (pPresentationParameters->BackBufferWidth == 800 &&
pPresentationParameters->BackBufferHeight == 600)
{
pPresentationParameters->BackBufferWidth = 1920;
pPresentationParameters->BackBufferHeight = 1080;
}
pPresentationParameters->PresentationInterval = D3DPRESENT_INTERVAL_ONE; // force VSYNC
HRESULT hres = m_pIDirect3D9->CreateDevice(Adapter, DeviceType, hFocusWindow, BehaviorFlags, pPresentationParameters, ppReturnedDeviceInterface);
*ppReturnedDeviceInterface = new FakeDirect3DDevice9(*ppReturnedDeviceInterface);
Expand Down

0 comments on commit fc99c94

Please sign in to comment.