mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix asserts which were broken in bug 946532, which was r=mattwoodrow,dvander btw
This commit is contained in:
parent
1f1e8370e8
commit
82ad1038a7
@ -3514,8 +3514,8 @@ mozilla::TemporaryRef<mozilla::gfx::DrawTarget>
|
||||
nsWindow::StartRemoteDrawing()
|
||||
{
|
||||
MOZ_ASSERT(!mCompositeDC);
|
||||
NS_ASSERTION(IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D)) ||
|
||||
IsRenderMode(gfxWindowsPlatform::RENDER_GDI)),
|
||||
NS_ASSERTION(IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D) ||
|
||||
IsRenderMode(gfxWindowsPlatform::RENDER_GDI),
|
||||
"Unexpected render mode for remote drawing");
|
||||
|
||||
HDC dc = (HDC)GetNativeData(NS_NATIVE_GRAPHIC);
|
||||
@ -3557,7 +3557,7 @@ void
|
||||
nsWindow::EndRemoteDrawing()
|
||||
{
|
||||
if (mTransparencyMode == eTransparencyTransparent) {
|
||||
MOZ_ASSERT(IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D))
|
||||
MOZ_ASSERT(IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D)
|
||||
|| mTransparentSurface);
|
||||
UpdateTranslucentWindow();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user