Bug 770694 - Fix for snapped view windows size. r=bas

This commit is contained in:
Brian R. Bondy 2012-07-04 20:36:37 -04:00
parent b12bc44d80
commit 1d1476e115

View File

@ -631,11 +631,14 @@ LayerManagerD3D10::VerifyBufferSize()
}
mRTView = nsnull;
if (gfxWindowsPlatform::IsOptimus() ||
gfxWindowsPlatform::IsRunningInWindows8Metro()) {
if (gfxWindowsPlatform::IsOptimus()) {
mSwapChain->ResizeBuffers(1, rect.width, rect.height,
DXGI_FORMAT_B8G8R8A8_UNORM,
0);
} else if (gfxWindowsPlatform::IsRunningInWindows8Metro()) {
mSwapChain->ResizeBuffers(2, rect.width, rect.height,
DXGI_FORMAT_B8G8R8A8_UNORM,
0);
} else {
mSwapChain->ResizeBuffers(1, rect.width, rect.height,
DXGI_FORMAT_B8G8R8A8_UNORM,