v1.66b
版本发布时间: 2018-12-03 19:02:31
ocornut/imgui最新发布版本:v1.91.3(2024-10-04 21:48:34)
See https://github.com/ocornut/imgui for the project homepage. See https://github.com/ocornut/imgui/releases for earlier release notes. See https://github.com/ocornut/imgui/wiki for language/framework bindings, links, 3rd parties helpers/extensions. New users: go to https://discourse.dearimgui.org for technical support.
TL;DR;
Releasing this as a hot-fix as 1.66 suffered from one problematic regression: one of the code-path for rendering large blocks of text (from 10k characters) was buggy. Although it didn't affect functions like TextUnformatted()
, it would affect the display when using InputText()
on a buffer larger than 10k (some characters would not be displayed or displayed in a wrong position) or calling the low-level ImDrawList::AddText()
function with large string.
In addition, the About Window previously available from the Demo Window was promoted to a function ShowAboutWindow()
and it now display various system information (compiler, imgui configuration, list of enabled features, etc.). When discussing issues on a forum post, posting the content of this box will help communicate important information across.
Reminder: If you are updating from a version BEFORE 1.64 and you have any local modifications of the code, make sure you read the 1.64 release notes carefully. Avoid modifying imgui cpp files, if you do please communicate/discuss your changes so we can think of a solution to avoid it.
Changes
- Fixed a text rendering/clipping bug introduced in 1.66 (on 2018-10-12, commit ede3a3b9) that affect single ImDrawList::AddText() calls with single strings larger than 10k. Text/TextUnformatted() calls were not affected, but e.g.
InputText()
was. [@pdoane] - When the focused window become inactive don't restore focus to a window with the
ImGuiWindowFlags_NoInputs
flag. (#2213) [@zzzyap] - Added
io.BackendPlatformName
/io.BackendRendererName
fields to optionally describe the back-end. Setting them up in the Examples back-ends, so it can be displayed in the About window. - Separator: Fixed Separator() outputting an extraneous empty line when captured into clipboard/text/file.
- Demo: Added
ShowAboutWindow()
call, previously was only accessible from the demo window. - Demo:
ShowAboutWindow()
now display various Build/Config Information (compiler, os, etc.) that can easily be copied into bug reports. - Fixed build issue with osxcross and macOS. (#2218) [@dos1]
- Examples: SDL: changed the signature of
ImGui_ImplSDL2_ProcessEvent()
to use a const SDL_Event*. (#2187)
ShowAboutWindow()
: