Clarify that IMGUI_USE_BGRA_PACKED_COLOR requires backend support. (#8201)

This commit is contained in:
ocornut
2024-12-04 10:38:19 +01:00
parent 923ca4765a
commit 70b6ba4240
4 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -2715,7 +2715,8 @@ IM_MSVC_RUNTIME_CHECKS_RESTORE
#endif
// Helpers macros to generate 32-bit encoded colors
// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file.
// - User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file.
// - Any setting other than the default will need custom backend support. The only standard backend that supports anything else than the default is DirectX9.
#ifndef IM_COL32_R_SHIFT
#ifdef IMGUI_USE_BGRA_PACKED_COLOR
#define IM_COL32_R_SHIFT 16