summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-18 07:57:41 +0100
committerGitHub <noreply@github.com>2018-12-18 07:57:41 +0100
commita195b2f1a3514e721911c8911a55d316f83588c1 (patch)
treed23bf324c38f1d607e6e9cb887ed602b5053fa3e /scene
parent535cb52558e68dc1ca44e3a42fbf00297e44d5ab (diff)
parent7cb5e005eea74811e93bb40d060739eb74a47e2d (diff)
Merge pull request #24428 from akien-mga/label-uppercase
Label: Fix kerning when using Uppercase mode
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/label.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 1b7196c402..14e8c34d5f 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -244,7 +244,7 @@ void Label::_notification(int p_what) {
CharType n = xl_text[i + pos + 1];
if (uppercase) {
c = String::char_uppercase(c);
- n = String::char_uppercase(c);
+ n = String::char_uppercase(n);
}
float move = font->draw_char(ci, Point2(x_ofs_shadow, y_ofs) + shadow_ofs, c, n, font_color_shadow, false);
@@ -265,7 +265,7 @@ void Label::_notification(int p_what) {
CharType n = xl_text[i + pos + 1];
if (uppercase) {
c = String::char_uppercase(c);
- n = String::char_uppercase(c);
+ n = String::char_uppercase(n);
}
x_ofs += drawer.draw_char(ci, Point2(x_ofs, y_ofs), c, n, font_color);