mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 770694 - Fix for snapped view windows size. r=bas
This commit is contained in:
parent
b12bc44d80
commit
1d1476e115
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user