mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 592870 - Make caption buttons work with D3D9-accelerated layers. r=jrmuizel a=blocking2.0:beta6+
This commit is contained in:
parent
979cc597a3
commit
7813244175
@ -756,6 +756,23 @@ DDRAW_FAILED:
|
||||
}
|
||||
}
|
||||
|
||||
#if MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||
if(event.region.Intersects(mCaptionButtons)) {
|
||||
// Temporary workaround to make the captions buttons visible for D3D9
|
||||
const nsIntRect* r;
|
||||
RECT rect;
|
||||
HBRUSH blackBrush = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
||||
for (nsIntRegionRectIterator iter(mCaptionButtonsRoundedRegion);
|
||||
(r = iter.Next()) != nsnull;) {
|
||||
rect.top = r->y;
|
||||
rect.left = r->x;
|
||||
rect.right = r->XMost();
|
||||
rect.bottom = r->YMost();
|
||||
FillRect(hDC, &rect, blackBrush);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!aDC) {
|
||||
::EndPaint(mWnd, &ps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user