зеркало из https://github.com/mozilla/gecko-dev.git
Fix Windows bustage
This commit is contained in:
Родитель
ff44c3c9e3
Коммит
b637caf892
|
@ -506,22 +506,13 @@ DDRAW_FAILED:
|
||||||
|
|
||||||
nsRefPtr<gfxContext> thebesContext = new gfxContext(targetSurface);
|
nsRefPtr<gfxContext> thebesContext = new gfxContext(targetSurface);
|
||||||
thebesContext->SetFlag(gfxContext::FLAG_DESTINED_FOR_SCREEN);
|
thebesContext->SetFlag(gfxContext::FLAG_DESTINED_FOR_SCREEN);
|
||||||
if (IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D) && paintRgnWin) {
|
if (IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D)) {
|
||||||
PRUint32 rects;
|
const nsIntRect* r;
|
||||||
paintRgnWin->GetNumRects(&rects);
|
for (nsIntRegionRectIterator iter(paintRgn);
|
||||||
nsRegionRectSet *rectSet = NULL;
|
(r = iter.Next()) != nsnull;) {
|
||||||
paintRgnWin->GetRects(&rectSet);
|
thebesContext->Rectangle(gfxRect(r->x, r->y, r->width, r->height), PR_TRUE);
|
||||||
for (int i = 0; i < rectSet->mNumRects; i++) {
|
|
||||||
thebesContext->Rectangle(
|
|
||||||
gfxRect(
|
|
||||||
rectSet->mRects[i].x,
|
|
||||||
rectSet->mRects[i].y,
|
|
||||||
rectSet->mRects[i].width,
|
|
||||||
rectSet->mRects[i].height), PR_TRUE);
|
|
||||||
}
|
}
|
||||||
thebesContext->Clip();
|
thebesContext->Clip();
|
||||||
|
|
||||||
paintRgnWin->FreeRects(rectSet);
|
|
||||||
}
|
}
|
||||||
#ifdef WINCE
|
#ifdef WINCE
|
||||||
thebesContext->SetFlag(gfxContext::FLAG_SIMPLIFY_OPERATORS);
|
thebesContext->SetFlag(gfxContext::FLAG_SIMPLIFY_OPERATORS);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче