ocornut
d4f722d5b2
IO: added ImGuiPlatformIO::ClearPlatformHandlers(), ClearRendererHandlers(). Backends: call those on Shutdown(). ( #8945 , #2769 )
2025-09-18 16:58:50 +02:00
ocornut
3dd51651e3
Backends: DX12: rename internal functions to match other backends.
2025-09-18 16:51:40 +02:00
ocornut
16b2d20115
Viewports: DestroyContext() does not call DestroyPlatformWindows() anymore. ( #7175 , #8945 )
2025-09-18 16:47:40 +02:00
ocornut
8ccff82153
Merge branch 'master' into docking
2025-09-18 15:39:52 +02:00
ocornut
0e7cd694eb
Version 1.92.4 WIP
2025-09-18 15:38:46 +02:00
ocornut
03f3c8d385
Nav: fix crash when NavCalcPreferredRefPos() hit non Mouse case with a null NavWindow (docking branch only).
...
Amend f6890ed00
.
2025-09-18 15:22:42 +02:00
ocornut
62275e877a
Amend f6890ed
mostly to please static analyzers.
v1.92.3-docking
2025-09-17 19:06:17 +02:00
ocornut
bf75bfec48
Amend f6890ed
mostly to please static analyzers.
v1.92.3
2025-09-17 19:05:22 +02:00
ocornut
f4a3529ffc
Fixed bad merge which left a few examples not building in docking branch.
2025-09-17 19:00:27 +02:00
ocornut
34bff4672c
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# docs/CHANGELOG.txt
# examples/example_glfw_metal/main.mm
# examples/example_glfw_opengl2/main.cpp
# examples/example_glfw_vulkan/main.cpp
# examples/example_win32_opengl3/main.cpp
# examples/example_win32_vulkan/main.cpp
# imgui.h
2025-09-17 18:48:39 +02:00
ocornut
1c544ee941
Version 1.92.3
2025-09-17 18:37:56 +02:00
ocornut
70a43f3088
Fixed build with IMGUI_ENABLE_TEST_ENGINE.
2025-09-17 18:12:32 +02:00
ocornut
9cf9d2be83
Debug Tools: ID Stack Tool: fixed a crash when using PushOverrideID(0) during a query. ( #8937 , #4631 )
2025-09-17 18:06:45 +02:00
ocornut
7e473d38d3
Debug Tools: ID Stack Tool: internal renaming (should be no-op).
2025-09-17 18:06:45 +02:00
ocornut
6d834d325e
Debug Tools: ID Stack Tool: fixed misleading/unnecessary run of UpdateDebugToolStackQueries() on first frame. ( #4631 )
...
`if (g.FrameCount != tool->LastActiveFrame + 1)` test failing on first frame.
Was not harmful but probably confusing in a debugger.
2025-09-17 18:06:45 +02:00
ocornut
f6890ed007
Nav, Inputs: fixed a crash that could occur when opening a popup following the processing of a global shortcut while no windows were focused.
...
Regression test: "window_popup_from_shortcut"
2025-09-17 16:41:40 +02:00
ocornut
431f2c5abd
InputText: fixed dubious code handling ImGuiInputTextFlags_EscapeClearsAll.
...
Specifically the missing = 0. Somehow only now got reported by Emscripten CI.
2025-09-15 19:32:24 +02:00
ocornut
6274ca4266
Backends: GLFW: fixed build for Emscripten which doesn't expose glfw3native.h.
...
Amend 10d0162
2025-09-15 19:28:01 +02:00
ocornut
d92c8c6aff
Backends: SDL2: Content Scales are always reported as 1.0 on Wayland. ( #8921 )
...
SDL_GetDisplayDPI() seems generally broken on X11/Wayland, but our logs shows that on Wayland we get both a content scale from SDL_GetDisplayDPI() and a framebuffer scale.
2025-09-15 19:20:56 +02:00
ocornut
72c00f39c1
Backends: GLFW: fix ImGui_ImplGlfw_IsWayland() amend broken 10d0162
. ( #8921 , #8920 )
...
Accidentally broke this while shuffling code...
2025-09-15 19:16:05 +02:00
ocornut
2675b7ca26
Backends: GLFW: Content Scales always reported as 1.0 on Wayland, FramebufferScale always reported as 1.0 on X11. ( #8920 , #8921 )
2025-09-15 18:55:09 +02:00
ocornut
10d0162378
Backends: GLFW: added ImGui_ImplGlfw_IsWayland(). ( #8921 , #8920 )
...
(technically presently untested but we've researched this)
2025-09-15 18:40:22 +02:00
ocornut
3c6c5692b8
Examples: Win32+Vulkan, GLFW+Metal: Fixed not applying content scale. ( #8921 , #8756 )
...
Somehow it breaks in Win32+OpenGL3 example: when enabled Win32 applies some extra scale.
2025-09-15 16:50:58 +02:00
ocornut
e044d99710
Examples: standardized all examples to have a base window size of 1280x800.
2025-09-15 16:34:36 +02:00
ocornut
22a6a83c54
Backends: SDL3: use SDL_GetWindowDisplayScale() on Mac to output DisplayFrameBufferScale. The function is more reliable during resolution changes e.g. going fullscreen. ( #8703 , #4414 )
2025-09-15 15:16:42 +02:00
ocornut
09e7870497
Docking, Style: added style.DockingNodeHasCloseButton option to hide the CloseButton() attached to each docking node. ( #8933 )
2025-09-15 14:06:54 +02:00
ocornut
cd476b27f8
Examples: GLFW+Vulkan: Fixed not applying content scale. ( #8921 , #8756 )
2025-09-12 21:32:46 +02:00
ocornut
9f13684d70
Examples: GLFW+OpenGL2: Fixed not applying content scale. ( #8921 )
...
Note that this requires GLFW 3.3.
2025-09-12 20:57:04 +02:00
ocornut
a4cd45f44c
Backends: GLFW: fixed imgui_impl_glfw.cpp being affected by X headers '#define Status' leak since 6b2cdf2
. ( #8884 )
2025-09-12 19:51:31 +02:00
ocornut
6d25cb844b
CI: switch iOS build to macos-14 runner as macos-latest currently fails.
2025-09-12 16:41:05 +02:00
ocornut
586da87728
InputText: Word-Wrap: hide vertical scrollbar but takes its width into account. ( #3237 , #952 , #1062 , #7363 )
...
Also increase IMGUI_VERSION_NUM for good measure, forgot to increase it when moving to public api.
2025-09-12 16:04:41 +02:00
ocornut
36133d8ac4
InputText: Word-Wrap: hide vertical scrollbar but takes its width into account. ( #3237 , #952 , #1062 , #7363 )
...
Also increase IMGUI_VERSION_NUM for good measure, forgot to increase it when moving to public api.
2025-09-12 16:03:18 +02:00
ocornut
8c6096fcfe
Merge branch 'master' into docking
2025-09-12 15:05:55 +02:00
ocornut
b6a33f8ce1
InputText: Word-Wrap: amend 7f1e2bb
to avoid triggering static analyzer. ( #3237 , #952 , #1062 , #7363 )
...
And generally more logical this way anyhow.
2025-09-12 15:05:23 +02:00
ocornut
78c1d4a92c
InputText: Word-Wrap: moving ImGuiInputTextFlags_WordWrap to public API. Added in demo. ( #3237 , #952 , #1062 , #7363 )
2025-09-12 15:03:33 +02:00
ocornut
7f1e2bb8dd
InputText: Word-Wrap: avoid word-wrap specific path InputTextLineIndexGetPosOffset() when word-wrap is disabled. ( #3237 , #952 , #1062 , #7363 )
2025-09-12 15:03:33 +02:00
ocornut
2f3e85bc37
Comments
2025-09-12 15:03:33 +02:00
ocornut
e8ca7af4c0
Fixed io.ConfigDpiScaleFonts from ever working since 1.92. ( #8832 , #8465 )
...
Merge fix e4055e763
didn't update the code properly.
2025-09-12 11:49:26 +02:00
ocornut
0457a09bb9
Fixed obsoleted ImGuiConfigFlags_DpiEnableScaleFonts/_DpiEnableScaleViewports names from setting the equivalent io.ConfigDpiScaleFonts/io.ConfigDpiScaleViewports flag correctly (regression in 1.92).
...
Fix e55415b
.
2025-09-12 11:49:12 +02:00
ocornut
71f45c12e9
Merge branch 'master' into docking
2025-09-11 21:28:02 +02:00
ocornut
8a94422246
InputText: optimize inactive path by avoiding an early ImStrlen().
2025-09-11 21:26:10 +02:00
ocornut
ae832ce532
InputText: moved blocks so same text rendering code is now used for active and inactive states.
...
(ignore whitespace to visualize this change easily)
2025-09-11 21:26:04 +02:00
ocornut
1e52e7b90c
InputText: Added a line index. Refactored cursor and selection rendering, now simpler, easier to reason about, and faster. ( #3237 , #952 , #1062 , #7363 )
2025-09-11 21:26:01 +02:00
ocornut
67085d732a
ImGuiTextIndex: rename member.
2025-09-11 21:25:56 +02:00
ocornut
f36c65661c
InputText: fixed pressing End (without Shift) in a multi-line selection from mistakenly moving cursor based on selection start.
2025-09-11 18:45:07 +02:00
ocornut
e2b7d84e96
CI: disable pvs-studio 28 days warning (amend).
2025-09-11 15:15:48 +02:00
ocornut
271f476d08
CI: disable pvs-studio 28 days warning.
2025-09-11 15:12:51 +02:00
ocornut
e2f314d613
InputText: fixed misassignment to unused Scroll.y variable when using ImGuiInputTextFlags_NoHorizontalScroll.
...
Amend d474ed7f7
(#7913 , #383 )
2025-09-11 15:06:25 +02:00
ocornut
8eb22ea620
Demo: ShowStyleSelector(), ShowFontSelector(): remove ImGuiSelectableFlags_NoAutoClosePopups for now.
...
In this situation we kinda want keyboard Enter to select and close but ideally not click. We don't have separate options yet.
2025-09-10 22:42:12 +02:00
ocornut
55f590c1d1
Selectable: ImGuiSelectableFlags_SelectOnNav doesn't select when holding Ctrl, to be consistent with multi-select.
...
Amend e66afbb
+ remove needless line in CloseCurrentPopup() block
2025-09-10 22:29:42 +02:00