Cleanup
This commit is contained in:
parent
e9f06c468a
commit
3444147fd8
|
@ -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);
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue