Skip to content

Commit 4806a19

Browse files
committed
Merge branch 'master' into docking
2 parents 126d004 + f5befd2 commit 4806a19

File tree

8 files changed

+48
-29
lines changed

8 files changed

+48
-29
lines changed

docs/CHANGELOG.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ HOW TO UPDATE?
3535
and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users.
3636
- Please report any issue!
3737

38+
-----------------------------------------------------------------------
39+
VERSION 1.91.9b (Released 2025-03-17)
40+
-----------------------------------------------------------------------
41+
42+
Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.9b
43+
44+
- Tables: Fixed assert when loading .ini settings with reordered columns. (#8496, #7934)
45+
- Tables: Fixed issues when loading .ini settings for a table with columns using
46+
ImGuiTableColumnFlags_DefaultHide or ImGuiTableColumnFlags_DefaultSort. (#8496, #7934)
47+
48+
3849
-----------------------------------------------------------------------
3950
VERSION 1.91.9 (Released 2025-03-14)
4051
-----------------------------------------------------------------------
@@ -64,6 +75,8 @@ Breaking changes:
6475
- Backends: Vulkan: Added 'uint32_t api_version' argument to ImGui_ImplVulkan_LoadFunctions().
6576
Note that it was also added to ImGui_ImplVulkan_InitInfo but for the later it is optional.
6677
(#8326, #8365, #8400)
78+
- Internals: Fonts: ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[],
79+
- Internals: Fonts: ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourcesCount.
6780
- Internals: Menus: reworked mangling of menu windows to use "###Menu_00" etc. instead
6881
of "##Menu_00", allowing them to also store the menu name before it. This shouldn't
6982
affect code unless directly accessing menu window from their mangled name.

imgui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91.9b
22
// (main code and documentation)
33

44
// Help:
@@ -449,6 +449,7 @@ CODE
449449
- old behavior altered border size (and therefore layout) based on border color's alpha, which caused variety of problems + old behavior a fixed 1.0f for border size which was not tweakable.
450450
- kept legacy signature (will obsolete), which mimics the old behavior, but uses Max(1.0f, style.ImageBorderSize) when border_col is specified.
451451
- added ImageWithBg() function which has both 'bg_col' (which was missing) and 'tint_col'. It was impossible to add 'bg_col' to Image() with a parameter order consistent with other functions, so we decided to remove 'tint_col' and introduce ImageWithBg().
452+
- 2025/02/25 (1.91.9) - internals: fonts: ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[]. ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourcesCount.
452453
- 2025/02/06 (1.91.9) - renamed ImFontConfig::GlyphExtraSpacing.x to ImFontConfig::GlyphExtraAdvanceX.
453454
- 2025/01/22 (1.91.8) - removed ImGuiColorEditFlags_AlphaPreview (made value 0): it is now the default behavior.
454455
prior to 1.91.8: alpha was made opaque in the preview by default _unless_ using ImGuiColorEditFlags_AlphaPreview. We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.

imgui.h

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91.9b
22
// (headers)
33

44
// Help:
@@ -28,8 +28,8 @@
2828

2929
// Library Version
3030
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
31-
#define IMGUI_VERSION "1.91.9"
32-
#define IMGUI_VERSION_NUM 19190
31+
#define IMGUI_VERSION "1.91.9b"
32+
#define IMGUI_VERSION_NUM 19191
3333
#define IMGUI_HAS_TABLE
3434
#define IMGUI_HAS_VIEWPORT // Viewport WIP branch
3535
#define IMGUI_HAS_DOCK // Docking WIP branch
@@ -39,6 +39,7 @@
3939
Index of this file:
4040
// [SECTION] Header mess
4141
// [SECTION] Forward declarations and basic types
42+
// [SECTION] Texture identifier (ImTextureID)
4243
// [SECTION] Dear ImGui end-user API functions
4344
// [SECTION] Flags & Enumerations
4445
// [SECTION] Tables API flags and structures (ImGuiTableFlags, ImGuiTableColumnFlags, ImGuiTableRowFlags, ImGuiTableBgTarget, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs)
@@ -255,22 +256,6 @@ typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: f
255256
typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport
256257
typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild()
257258

258-
// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type]
259-
// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file.
260-
// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details.
261-
// - You can make this a structure with various constructors if you need. You will have to implement ==/!= operators.
262-
// - (note: before v1.91.4 (2024/10/08) the default type for ImTextureID was void*. Use intermediary intptr_t cast and read FAQ if you have casting warnings)
263-
#ifndef ImTextureID
264-
typedef ImU64 ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that)
265-
#endif
266-
267-
// ImDrawIdx: vertex index. [Compile-time configurable type]
268-
// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended).
269-
// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file.
270-
#ifndef ImDrawIdx
271-
typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends)
272-
#endif
273-
274259
// Character types
275260
// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display)
276261
typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings.
@@ -320,6 +305,19 @@ struct ImVec4
320305
};
321306
IM_MSVC_RUNTIME_CHECKS_RESTORE
322307

308+
//-----------------------------------------------------------------------------
309+
// [SECTION] Texture identifier (ImTextureID)
310+
//-----------------------------------------------------------------------------
311+
312+
// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type]
313+
// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file.
314+
// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details.
315+
// - You can make this a structure with various constructors if you need. You will have to implement ==/!= operators.
316+
// - (note: before v1.91.4 (2024/10/08) the default type for ImTextureID was void*. Use intermediary intptr_t cast and read FAQ if you have casting warnings)
317+
#ifndef ImTextureID
318+
typedef ImU64 ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that)
319+
#endif
320+
323321
//-----------------------------------------------------------------------------
324322
// [SECTION] Dear ImGui end-user API functions
325323
// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!)
@@ -3072,6 +3070,13 @@ struct ImGuiSelectionExternalStorage
30723070
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32)
30733071
#endif
30743072

3073+
// ImDrawIdx: vertex index. [Compile-time configurable type]
3074+
// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended).
3075+
// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file.
3076+
#ifndef ImDrawIdx
3077+
typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends)
3078+
#endif
3079+
30753080
// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h]
30763081
// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering,
30773082
// you can poke into the draw list for that! Draw callback may be useful for example to:

imgui_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91.9b
22
// (demo code)
33

44
// Help:

imgui_draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91.9b
22
// (drawing and font code)
33

44
/*

imgui_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91.9b
22
// (internal structures/api)
33

44
// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility.

imgui_tables.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91b
22
// (tables and columns code)
33

44
/*
@@ -1638,9 +1638,9 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo
16381638
column->InitStretchWeightOrWidth = init_width_or_weight;
16391639
if (table->IsInitializing)
16401640
{
1641-
ImGuiTableFlags init_flags = ~0;
1642-
if (column->WidthRequest >= 0.0f || column->StretchWeight >= 0.0f)
1643-
init_flags &= ~ImGuiTableFlags_Resizable;
1641+
ImGuiTableFlags init_flags = ~table->SettingsLoadedFlags;
1642+
if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f)
1643+
init_flags |= ImGuiTableFlags_Resizable;
16441644
TableInitColumnDefaults(table, column, init_flags);
16451645
}
16461646

imgui_widgets.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.9
1+
// dear imgui, v1.91b
22
// (widgets code)
33

44
/*
@@ -6214,7 +6214,7 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl
62146214
if (g.Style.FrameBorderSize > 0.0f)
62156215
RenderFrameBorder(bb.Min, bb.Max, rounding);
62166216
else
6217-
window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border
6217+
window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color buttons are often in need of some sort of border
62186218
}
62196219

62206220
// Drag and Drop Source

0 commit comments

Comments
 (0)