Merge pull request #30815 from YeldhamDev/debugger_monitor_text_integer

Fix text position in the debugger's "Monitors" tab not being an integer
This commit is contained in:
Rémi Verschelde 2019-07-25 16:47:52 +02:00 committed by GitHub
commit 510bb3789e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}