This commit is contained in:
Niklas Mischkulnig 2018-06-04 17:24:35 +02:00
parent e9f06c468a
commit 3444147fd8
2 changed files with 1 additions and 5 deletions

View File

@ -154,7 +154,6 @@ public:
ret ^= doubleHash(b); ret ^= doubleHash(b);
ret ^= doubleHash(a); ret ^= doubleHash(a);
} }
if (this->backgroundAttr != NULL) { if (this->backgroundAttr != NULL) {
uiAttributeBackground(this->backgroundAttr, &r, &g, &b, &a); uiAttributeBackground(this->backgroundAttr, &r, &g, &b, &a);
ret ^= doubleHash(r); ret ^= doubleHash(r);

View File

@ -360,9 +360,7 @@ public:
if (backgroundBrush != nullptr) { if (backgroundBrush != nullptr) {
// Get width of text // Get width of text
float totalWidth = 0; float totalWidth = 0;
for (UINT32 index = 0; index < glyphRun->glyphCount; index++) {
for (UINT32 index = 0; index < glyphRun->glyphCount; index++)
{
totalWidth += glyphRun->glyphAdvances[index]; totalWidth += glyphRun->glyphAdvances[index];
} }
@ -377,7 +375,6 @@ public:
baselineOriginX + totalWidth, baselineOriginX + totalWidth,
baselineOriginY + descent); baselineOriginY + descent);
// Fill Rectangle
this->rt->FillRectangle(rect, backgroundBrush); this->rt->FillRectangle(rect, backgroundBrush);
} }
this->rt->DrawGlyphRun( this->rt->DrawGlyphRun(