From 7f12618fdf81e77cd7413383d49fc0fb19c93dd2 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Thu, 25 Jul 2019 11:02:17 -0300 Subject: Fix text position in the debugger's "Monitors" tab not being an integer --- editor/script_editor_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index f2b9b15b49..a749509ce4 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -1011,7 +1011,7 @@ void ScriptEditorDebugger::_performance_draw() { if (which.empty()) { String text = TTR("Pick one or more items from the list to display the graph."); - perf_draw->draw_string(graph_font, Point2(MAX(0, perf_draw->get_size().x - graph_font->get_string_size(text).x), perf_draw->get_size().y + graph_font->get_ascent()) / 2, text, get_color("font_color", "Label"), perf_draw->get_size().x); + perf_draw->draw_string(graph_font, Point2i(MAX(0, perf_draw->get_size().x - graph_font->get_string_size(text).x), perf_draw->get_size().y + graph_font->get_ascent()) / 2, text, get_color("font_color", "Label"), perf_draw->get_size().x); return; } -- cgit v1.2.3