mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DX11: Fix window resizing.
Still some aspect ratio problems though... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5703 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -403,6 +403,11 @@ unsigned int GetBackBufferHeight() { return yres; }
|
||||
|
||||
void Reset()
|
||||
{
|
||||
DXGI_SWAP_CHAIN_DESC desc;
|
||||
D3D::swapchain->ResizeBuffers(1, 0, 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0);
|
||||
swapchain->GetDesc(&desc);
|
||||
xres = desc.BufferDesc.Width;
|
||||
yres = desc.BufferDesc.Height;
|
||||
// TODO: Check whether we need to do anything here
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user