mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 593438. d3d9: Don't use an accelerated layer manager for transparent windows. r=vlad
Transparent windows require a more complicated dance to get transparency to work correctly. For now, we'll just not accelerate them.
This commit is contained in:
parent
f800296d72
commit
e711022870
@ -3168,6 +3168,14 @@ nsWindow::GetLayerManager()
|
||||
return nsBaseWidget::GetLayerManager();
|
||||
}
|
||||
|
||||
/* We don't currently support using an accelerated layer manager with
|
||||
* transparent windows so don't even try. I'm also not sure if we even
|
||||
* want to support this case. See bug #593471 */
|
||||
if (eTransparencyTransparent == mTransparencyMode) {
|
||||
mUseAcceleratedRendering = PR_FALSE;
|
||||
return nsBaseWidget::GetLayerManager();
|
||||
}
|
||||
|
||||
if (topWindow->GetAcceleratedRendering() != mUseAcceleratedRendering) {
|
||||
mLayerManager = NULL;
|
||||
mUseAcceleratedRendering = topWindow->GetAcceleratedRendering();
|
||||
|
Loading…
Reference in New Issue
Block a user