Cleanup
This commit is contained in:
parent
e9f06c468a
commit
3444147fd8
|
@ -154,7 +154,6 @@ public:
|
|||
ret ^= doubleHash(b);
|
||||
ret ^= doubleHash(a);
|
||||
}
|
||||
|
||||
if (this->backgroundAttr != NULL) {
|
||||
uiAttributeBackground(this->backgroundAttr, &r, &g, &b, &a);
|
||||
ret ^= doubleHash(r);
|
||||
|
|
|
@ -360,9 +360,7 @@ public:
|
|||
if (backgroundBrush != nullptr) {
|
||||
// Get width of text
|
||||
float totalWidth = 0;
|
||||
|
||||
for (UINT32 index = 0; index < glyphRun->glyphCount; index++)
|
||||
{
|
||||
for (UINT32 index = 0; index < glyphRun->glyphCount; index++) {
|
||||
totalWidth += glyphRun->glyphAdvances[index];
|
||||
}
|
||||
|
||||
|
@ -377,7 +375,6 @@ public:
|
|||
baselineOriginX + totalWidth,
|
||||
baselineOriginY + descent);
|
||||
|
||||
// Fill Rectangle
|
||||
this->rt->FillRectangle(rect, backgroundBrush);
|
||||
}
|
||||
this->rt->DrawGlyphRun(
|
||||
|
|
Loading…
Reference in New Issue