mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
@@ -1046,7 +1046,7 @@ namespace ImGuiExt {
|
||||
std::string drawString;
|
||||
auto textEnd = text + strlen(text);
|
||||
for (auto wrapPos = text; wrapPos != textEnd;) {
|
||||
wrapPos = ImGui::GetFont()->CalcWordWrapPosition(1, wrapPos, textEnd, availableSpace.x * 0.8F);
|
||||
wrapPos = ImGui::GetFont()->CalcWordWrapPosition(GetFontSize(), wrapPos, textEnd, availableSpace.x * 0.8F);
|
||||
drawString += std::string(text, wrapPos) + "\n";
|
||||
text = wrapPos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user