History

Slight fix for shadows; we were drawing an unnecessary layer of text.

Andrzej Kapolka committed 13 years ago

Commit 00171ec1 parent 700d3de2 files · +2 −2Browse files

Showing the changes to interface/src/ui/TextRenderer.cpp (1 of 2 files). Show all

Unified · Split

interface/src/ui/TextRenderer.cpp+1−1
@@ -139,7 +139,7 @@ const Glyph& TextRenderer::getGlyph(char c) { · 138 unmodified lines
139 painter.setFont(_font);139 painter.setFont(_font);
140 if (_effectType == SHADOW_EFFECT) {140 if (_effectType == SHADOW_EFFECT) {
141 for (int i = 0; i < _effectThickness; i++) {141 for (int i = 0; i < _effectThickness; i++) {
142 painter.drawText(-bounds.x() - i, -bounds.y() + i, ch);142 painter.drawText(-bounds.x() - 1 - i, -bounds.y() + 1 + i, ch);
143 }143 }
144 } else if (_effectType == OUTLINE_EFFECT) {144 } else if (_effectType == OUTLINE_EFFECT) {
145 QPainterPath path;145 QPainterPath path;