Skip to content

Commit

Permalink
Fix incorrect size on D3D renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
irixaligned committed Apr 22, 2024
1 parent f178646 commit d2956da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/d3d11_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ bool D3D11Device::CreateSwapChain()
m_is_exclusive_fullscreen = false;
}
u32 surface_width = static_cast<u32>(client_rc.right - client_rc.left);
u32 surface_height = static_cast<u32>(client_rc.right - client_rc.left);
u32 surface_height = static_cast<u32>(client_rc.bottom - client_rc.top);
#else
u32 surface_width = m_window_info.surface_width;
u32 surface_height = m_window_info.surface_height;
Expand Down
2 changes: 1 addition & 1 deletion src/util/d3d12_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ bool D3D12Device::CreateSwapChain()
}

u32 surface_width = static_cast<u32>(client_rc.right - client_rc.left);
u32 surface_height = static_cast<u32>(client_rc.right - client_rc.left);
u32 surface_height = static_cast<u32>(client_rc.bottom - client_rc.top);
#else
u32 surface_width = m_window_info.surface_width;
u32 surface_height = m_window_info.surface_height;
Expand Down

0 comments on commit d2956da

Please sign in to comment.