summaryrefslogtreecommitdiff
path: root/scene/gui/label.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-12-19 18:48:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-12-19 18:48:30 -0300
commitfc103566e677493b7ecde44b8ccea3f40b5a01ec (patch)
tree251043d3768be4b5adce02a1d89517573a7f7e24 /scene/gui/label.cpp
parent06dd10b3905a7d48beffe0523b785d513747f511 (diff)
Added font oversampling support
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r--scene/gui/label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index e1f77594da..51a25c60a1 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -207,7 +207,7 @@ void Label::_notification(int p_what) {
} break;
}
- int y_ofs = style->get_offset().y;
+ float y_ofs = style->get_offset().y;
y_ofs += (line - lines_skipped) * font_h + font->get_ascent();
y_ofs += vbegin + line * vsep;