mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
build: Update ImGui to v1.92.1 (#2325)
Update ImGui to the latest version and rewrite most of the font handling code
This commit is contained in:
@@ -1019,7 +1019,7 @@ namespace ImGuiExt {
|
||||
std::string drawString;
|
||||
auto textEnd = text + strlen(text);
|
||||
for (auto wrapPos = text; wrapPos != textEnd;) {
|
||||
wrapPos = ImGui::GetFont()->CalcWordWrapPositionA(1, wrapPos, textEnd, availableSpace.x * 0.8F);
|
||||
wrapPos = ImGui::GetFont()->CalcWordWrapPosition(1, wrapPos, textEnd, availableSpace.x * 0.8F);
|
||||
drawString += std::string(text, wrapPos) + "\n";
|
||||
text = wrapPos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user