diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-25 16:47:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 16:47:52 +0200 |
commit | 510bb3789e6d5a0703ddbbdd6714548db4f3d7e0 (patch) | |
tree | 95068dba2a169f84456265c4f24e57b5ce8c0e6f /editor | |
parent | 1a33ef31a7a78087ccf51b09c4c959b66bdd2639 (diff) | |
parent | 7f12618fdf81e77cd7413383d49fc0fb19c93dd2 (diff) |
Merge pull request #30815 from YeldhamDev/debugger_monitor_text_integer
Fix text position in the debugger's "Monitors" tab not being an integer
Diffstat (limited to 'editor')
-rw-r--r-- | editor/script_editor_debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |