From 21771adb94c92a0d73d4dd42b42d8d6e4bf9ab80 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 29 Jan 2018 15:35:51 +0100 Subject: [PATCH] Nav: Debug overlay uses default font. (#787) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index c8add8ced..d4c7835e6 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2198,7 +2198,7 @@ static bool NavScoreItem(ImRect cand) ImFormatString(buf, IM_ARRAYSIZE(buf), "dbox (%.2f,%.2f->%.4f) dcen (%.2f,%.2f->%.4f) d (%.2f,%.2f->%.4f) nav %c, quad %c", dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "WENS"[g.NavMoveDir], "WENS"[quadrant]); g.OverlayDrawList.AddRect(cand.Min, cand.Max, IM_COL32(255,255,0,200)); g.OverlayDrawList.AddRectFilled(cand.Max-ImVec2(4,4), cand.Max+ImGui::CalcTextSize(buf)+ImVec2(4,4), IM_COL32(40,0,0,150)); - g.OverlayDrawList.AddText(cand.Max, ~0U, buf); + g.OverlayDrawList.AddText(g.IO.FontDefault, 13.0f, cand.Max, ~0U, buf); } #endif