From c99f824f97ca567e317cef3300e8cbf2f72235a7 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Wed, 20 Jul 2022 19:33:33 +0200 Subject: [PATCH] [Maintenance] Introduce color component constants YuugenMagan will need them. Part of P0207, funded by GhostPhanom. --- pc98.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pc98.h b/pc98.h index d6f6fa91..53d19a29 100644 --- a/pc98.h +++ b/pc98.h @@ -84,6 +84,10 @@ typedef unsigned int utram_y_t; typedef bool page_t; #define COLOR_COUNT 16 + +#define COMPONENT_R 0 +#define COMPONENT_G 1 +#define COMPONENT_B 2 #define COMPONENT_COUNT 3 // The 16-color mode supports 4 bits per RGB component, for a total of