mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758980: Assume DirectWrite is buggy when it returns empty alpha texture bounds. r=jrmuizel
This commit is contained in:
parent
c3b86b1336
commit
7c405d7b37
@ -1803,6 +1803,12 @@ DrawTargetD2D::FillGlyphsManual(ScaledFontDWrite *aFont,
|
||||
|
||||
RECT bounds;
|
||||
hr = analysis->GetAlphaTextureBounds(DWRITE_TEXTURE_CLEARTYPE_3x1, &bounds);
|
||||
|
||||
if (bounds.bottom <= bounds.top || bounds.right <= bounds.left) {
|
||||
// DWrite seems to do this sometimes. I'm not 100% sure why. See bug 758980.
|
||||
gfxDebug() << "Empty alpha texture bounds! Falling back to regular drawing.";
|
||||
return false;
|
||||
}
|
||||
IntRect rectBounds(bounds.left, bounds.top, bounds.right - bounds.left, bounds.bottom - bounds.top);
|
||||
IntRect surfBounds(IntPoint(0, 0), mSize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user