Skip to content

Commit

Permalink
FontAtlas: reduced baked IM_DRAWLIST_TEX_LINES_WIDTH_MAX from 63 to 3…
Browse files Browse the repository at this point in the history
…2. (#3245)
  • Loading branch information
ocornut committed Jan 15, 2025
1 parent 100075f commit 8a9de84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Breaking changes:

Other changes:

- ImDrawList: texture baked storage for thick line reduced from ~64x64 to ~32x32. (#3245)
- Backends: DirectX12: Texture upload use the command queue provided in
ImGui_ImplDX12_InitInfo instead of creating its own.

Expand Down
3 changes: 1 addition & 2 deletions imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -2923,7 +2923,7 @@ struct ImGuiSelectionExternalStorage

// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking.
#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63)
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32)
#endif

// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h]
Expand Down Expand Up @@ -2997,7 +2997,6 @@ struct ImDrawChannel
ImVector<ImDrawIdx> _IdxBuffer;
};


// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
struct ImDrawListSplitter
Expand Down

0 comments on commit 8a9de84

Please sign in to comment.