From 7f032e52346973a23534f4205c84b2b14d7c0986 Mon Sep 17 00:00:00 2001 From: BearOso Date: Wed, 26 Apr 2023 16:26:28 -0500 Subject: [PATCH] imgui: Fix wrapping. --- external/imgui/snes9x_imgui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/imgui/snes9x_imgui.cpp b/external/imgui/snes9x_imgui.cpp index 590bd2c5..cab5aa92 100644 --- a/external/imgui/snes9x_imgui.cpp +++ b/external/imgui/snes9x_imgui.cpp @@ -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)