From 310c719a1fb6fce7c117f84aaa1075c2d9b20b35 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 15 May 2026 10:48:24 +0200 Subject: [PATCH] Rework definition of ImDrawFlags_InvalidMask_ so it more strictly fits in an int32 for non C/C++ languages where it matters. (#9396, #9397) --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index a978ab735..3b7cde0fa 100644 --- a/imgui.h +++ b/imgui.h @@ -3262,7 +3262,7 @@ enum ImDrawFlags_ ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, ImDrawFlags_Closed = 1 << 9, // PathStroke(), AddPolyline(): specify that shape should be closed. - ImDrawFlags_InvalidMask_ = (ImDrawFlags)0x8000000F, + ImDrawFlags_InvalidMask_ = ~0x7FFFFFF0, // == 0x8000000F, }; // Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly.