imgui: Fix wrapping.

This commit is contained in:
BearOso 2023-04-26 16:26:28 -05:00
parent 945cd27841
commit 7f032e5234
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ static void ImGui_DrawTextOverlay(const char *text,
ImVec2(x + box_size.x, y + box_size.y),
settings.box_color,
settings.spacing / 2);
draw_list->AddText(ImVec2(x + padding, y + padding), settings.text_color, text);
draw_list->AddText(nullptr, 0.0f, ImVec2(x + padding, y + padding), settings.text_color, text, nullptr, wrap_at);
}
bool S9xImGuiDraw(int width, int height)