Skip to content

Commit

Permalink
Force FullScreen_RefreshRate to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadlySurprise authored and DeadlySurprise committed Dec 16, 2017
1 parent 012ba6b commit 4d46047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FlatOut2/CDirect3D9Hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ BOOL WriteErrorLog(const char* filename, HRESULT hr, UINT Adapter, D3DDEVTYPE De
HRESULT CDirect3D9Hook::CreateDevice(UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters, IDirect3DDevice9 ** ppReturnedDeviceInterface)
{
pPresentationParameters->Windowed = true;
pPresentationParameters->FullScreen_RefreshRateInHz = 0;
HRESULT hr = m_ptr->CreateDevice(Adapter, DeviceType, hFocusWindow, BehaviorFlags, pPresentationParameters, ppReturnedDeviceInterface);
if (hr != D3D_OK)
{
Expand Down

0 comments on commit 4d46047

Please sign in to comment.