summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-02 17:43:21 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 19:49:53 -0400
commit3a2a2b6ba98d8805df2dde059f07026dcd972326 (patch)
treedb6096a53225444a760780515a6a7a0a9a626c0c /include
parent1cdd0ac199b921dc31a42c56455262b49b5076f1 (diff)
Fix issues according to feedback
Diffstat (limited to 'include')
-rw-r--r--include/constants/rgb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/constants/rgb.h b/include/constants/rgb.h
index 737ea7678..1896250d2 100644
--- a/include/constants/rgb.h
+++ b/include/constants/rgb.h
@@ -1,9 +1,9 @@
#ifndef GUARD_RGB_H
#define GUARD_RGB_H
-#define R(color) ((color) & 0x1F)
-#define G(color) (((color) >> 5) & 0x1F)
-#define B(color) (((color) >> 10) & 0x1F)
+#define GET_R(color) ((color) & 0x1F)
+#define GET_G(color) (((color) >> 5) & 0x1F)
+#define GET_B(color) (((color) >> 10) & 0x1F)
#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10))
#define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r))