2.1.6 Dear ImGui v1.91.2
- Yet another type inconsistency fix see #15
- Updated to Dear ImGui v1.91.2
Forwarded from https://github.com/ocornut/imgui/releases/tag/v1.91.2 (removed @ user to avoid spam)
1.91.2: detect id conflicts, table fixes, faster input text & more.
Changes (since v1.91.1)
- Added io.ConfigDebugHighlightIdConflicts debug feature! (ocornut/imgui#7961, ocornut/imgui#7669)
THIS DETECTS THE MOST COMMON USER ERROR BY FIRST-TIME DEAR IMGUI PROGRAMMERS! See Debug Tools page.- The tool detects when multiple items are sharing the same identifier, due to not using PushID/PopID in loops, or not using ID stack facilities such as "##" suffixes. Very frequently it happens when using empty "" labels.
- When hovering an item with a conflicting ID, all visible items with the same ID will be highlighted and an explanatory tooltip is made visible.
- The feature may be disabled and is exposed in Demo->Tools menu.
I've been wanting to add this tool for a long time, but was stalled by finding a way to
not make it spammy + make it practically zero cost. After made various proposals to
solve the same problem (thanks for pushing me!), I decided it was time to finish it. - Added ImGuiItemFlags_AllowDuplicateId to use with PushItemFlag()/PopItemFlag() if for some reason you intend to have duplicate identifiers. (ocornut/imgui#74, ocornut/imgui#96, ocornut/imgui#480, ocornut/imgui#501, ocornut/imgui#647, ocornut/imgui#654, ocornut/imgui#719, ocornut/imgui#843, ocornut/imgui#894, ocornut/imgui#1057, ocornut/imgui#1173, ocornut/imgui#1390, ocornut/imgui#1414, ocornut/imgui#1556, ocornut/imgui#1768, ocornut/imgui#2041, ocornut/imgui#2116, ocornut/imgui#2330, ocornut/imgui#2475, ocornut/imgui#2562, ocornut/imgui#2667, ocornut/imgui#2807, ocornut/imgui#2885, ocornut/imgui#3102, ocornut/imgui#3375, ocornut/imgui#3526, ocornut/imgui#3964, ocornut/imgui#4008, ocornut/imgui#4070, ocornut/imgui#4158, ocornut/imgui#4172, ocornut/imgui#4199, ocornut/imgui#4375, ocornut/imgui#4395, ocornut/imgui#4471, ocornut/imgui#4548, ocornut/imgui#4612, ocornut/imgui#4631, ocornut/imgui#4657, ocornut/imgui#4796, ocornut/imgui#5210, ocornut/imgui#5303, ocornut/imgui#5360, ocornut/imgui#5393, ocornut/imgui#5533, ocornut/imgui#5692, ocornut/imgui#5707, ocornut/imgui#5729, ocornut/imgui#5773, ocornut/imgui#5787, ocornut/imgui#5884, ocornut/imgui#6046, ocornut/imgui#6093, ocornut/imgui#6186, ocornut/imgui#6223, ocornut/imgui#6364, ocornut/imgui#6387, ocornut/imgui#6567, ocornut/imgui#6692, ocornut/imgui#6724, ocornut/imgui#6939, ocornut/imgui#6984, ocornut/imgui#7246, ocornut/imgui#7270, ocornut/imgui#7375, ocornut/imgui#7421, ocornut/imgui#7434, ocornut/imgui#7472, ocornut/imgui#7581, ocornut/imgui#7724, ocornut/imgui#7926, ocornut/imgui#7937 and probably more..)
- Nav: pressing any keyboard key while holding Alt disable toggling nav layer on Alt release. (ocornut/imgui#4439)
- MultiSelect+Tables: fixed an issue where box-select would skip items while drag-scrolling in a table with outer borders. (ocornut/imgui#7970, ocornut/imgui#7821).
- Inputs: SetNextItemShortcut() with ImGuiInputFlags_Tooltip doesn't show tooltip when item is active.
- InputText: internal refactoring to simplify and optimize the code. The ImWchar buffer has been removed. Simplifications allowed to implement new optimizations for handling very large text buffers (e.g. in our testing, handling of a 1 MB text buffer is now 3 times faster in VS2022 Debug build). This is the first step toward more refactoring. (ocornut/imgui#7925)
- InputText: added CJK double-width punctuation to list of separators considered for CTRL+Arrow.
- Tables: fixed auto-width columns when using synced-instances of same table. The previous fix done in v1.90.5 was incomplete. (ocornut/imgui#7218)
- Tables: fixed assertion related to inconsistent outer clipping when sizes are not rounded. (ocornut/imgui#7957)
- Tables: fixed assertion with tables with borders when clipped by parent. (ocornut/imgui#6765, ocornut/imgui#3752, ocornut/imgui#7428)
- Windows: fixed an issue where double-click to collapse could be triggered even while another item is active, if the item didn't use the left mouse button. (ocornut/imgui#7841)
- Misc: Made it accepted to call SetMouseCursor() with any out-of-bound value, as a way to allow hacking in custom cursors if desirable.
- Fonts: fixed ellipsis "..." rendering width miscalculation bug introduced in 1.91.0. (ocornut/imgui#7976)
- TextLinkOpenURL(): modified tooltip to display a verb "Open 'xxxx'". (ocornut/imgui#7885, ocornut/imgui#7660)
- Backends: SDL2: use SDL_Vulkan_GetDrawableSize() when available. (ocornut/imgui#7967, ocornut/imgui#3190)
- Backends: GLFW+Emscripten: use OSX behaviors automatically when using contrib glfw port. (ocornut/imgui#7965, ocornut/imgui#7915)
- Backends: WebGPU: Added support for optional IMGUI_IMPL_WEBGPU_BACKEND_DAWN / IMGUI_IMPL_WEBGPU_BACKEND_WGPU
defines to handle ever-changing native implementations. (ocornut/imgui#7977, ocornut/imgui#7969, ocornut/imgui#6602, ocornut/imgui#6188, ocornut/imgui#7523)
Changes from 1.91.1 to 1.91.2 in the Docking branch:
- Viewports: fixed an issue where a window manually constrained to the main viewport while crossing over main viewport bounds isn't translated properly. (ocornut/imgui#7985)
- Backends: SDL2, SDL3, Win32: ensure that ImGuiPlatformMonitor list is available after backend Init call. (ocornut/imgui#7995)
- Backends: Win32: fixed direct calls to platform_io.Platform_SetWindowPos()/Platform_SetWindowSize() on windows created by application (typically main viewport).
- Backends: Win32: fixed an issue where a viewport destroyed while clicking would hog mouse tracking and temporary lead to incorrect update of HoveredWindow. (ocornut/imgui#7971)
- Backends: SDL3: added support for viewport->ParentViewportId field to support parenting windows at OS level. (ocornut/imgui#7973, ocornut/imgui#7989)