Skip to content

Commit

Permalink
Fix cropping on dpi >100% (#358)
Browse files Browse the repository at this point in the history
Was triggered by my keyboard resize fix.
  • Loading branch information
Spodi authored Oct 24, 2023
1 parent 317edd7 commit 3da33bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphic/Fast3D/gfx_direct3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ static void gfx_d3d11_update_framebuffer_parameters(int fb_id, uint32_t width, u
if (desc1.Width != width || desc1.Height != height) {
fb.render_target_view.Reset();
tex.texture.Reset();
ThrowIfFailed(swap_chain->ResizeBuffers(0, 0, 0, DXGI_FORMAT_UNKNOWN, desc1.Flags));
ThrowIfFailed(swap_chain->ResizeBuffers(0, width, height, DXGI_FORMAT_UNKNOWN, desc1.Flags));
}
ThrowIfFailed(
swap_chain->GetBuffer(0, __uuidof(ID3D11Texture2D), (LPVOID*)tex.texture.ReleaseAndGetAddressOf()));
Expand Down

0 comments on commit 3da33bd

Please sign in to comment.