diff options
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r-- | core/fxge/fx_dib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h index 4af47907ea..9acfa51bbe 100644 --- a/core/fxge/fx_dib.h +++ b/core/fxge/fx_dib.h @@ -74,8 +74,9 @@ extern const int16_t SDP_Table[513]; #define FXDIB_BLEND_LUMINOSITY 24 #define FXDIB_BLEND_UNSUPPORTED -1 -// TODO(thestig): Rename to FXSYS_BGR() and check callers. -#define FXSYS_RGB(r, g, b) ((r) | ((g) << 8) | ((b) << 16)) +constexpr uint32_t FXSYS_BGR(uint8_t b, uint8_t g, uint8_t r) { + return (b << 16) | (g << 8) | r; +} constexpr uint8_t FXSYS_GetRValue(uint32_t bgr) { return bgr & 0xff; |