From 7a54e76cd15c988100887dd8cb3f4e45fbcbd804 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 27 Jul 2026 21:26:10 +0200 Subject: [PATCH] DrawList: comment about ImFontAtlasFlags_NoBakedLines. --- docs/CHANGELOG.txt | 2 ++ imgui.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index b070d0c2a..b3b8960d6 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -149,6 +149,8 @@ HOW TO UPDATE? - `ImDrawListFlags_AllowVtxOffset` -> `ImDrawFlags_UseVtxOffset` - `ImDrawListFlags_TextNoPixelSnap` -> `ImDrawFlags_TextNoPixelSnap` Unifying them allows easily using them for both per-primitives and scope alterations. +- (Breaking) Enabling ImFontAtlasFlags_NoBakedLines in the font atlas will disable + support for anti-aliased lines. - Tweaked line rendering in various locations to avoid blurryness: - Windows: title-bar and menu-bar border (when thickness>1.0f). - Tables: borders (when thickness>1.0f). diff --git a/imgui.h b/imgui.h index b3333eea1..7997e3b26 100644 --- a/imgui.h +++ b/imgui.h @@ -3875,7 +3875,7 @@ enum ImFontAtlasFlags_ ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) - ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). + ImFontAtlasFlags_NoBakedLines = 1 << 2, // [OBSOLETE] Don't build line textures into the atlas (save a little texture memory). SINCE 1.93.0 THIS PREVENT ANTI-ALIASED STROKES FROM WORKING. ImFontAtlasFlags_NoBakedRoundCorners= 1 << 3, // Don't build round corners into the atlas. };