diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-07-12 17:00:40 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-07-12 17:00:40 -0400 |
commit | 20ddd44176b15e778ed11b43030419a55fa04542 (patch) | |
tree | 39c01050678c944acd7ab27ce0323c3f8ebd7a5f /src/image_processing_effects.c | |
parent | 6f7f507c504736f4b70278bc293dd8a79b2f85e3 (diff) |
Remove braces around one-line expressions; add constants/rgb.h
Diffstat (limited to 'src/image_processing_effects.c')
-rw-r--r-- | src/image_processing_effects.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/image_processing_effects.c b/src/image_processing_effects.c index fe5fc5dd9..26dc4b05e 100644 --- a/src/image_processing_effects.c +++ b/src/image_processing_effects.c @@ -1,15 +1,7 @@ #include "global.h" #include "image_processing_effects.h" #include "contest_painting.h" - -#define GET_R(color) ((color) & 0x1F) -#define GET_G(color) (((color) >> 5) & 0x1F) -#define GET_B(color) (((color) >> 10) & 0x1F) - -#define RGB_ALPHA (1 << 15) -#define IS_ALPHA(color) ((color) & RGB_ALPHA) - -#define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r)) +#include "constants/rgb.h" u16 *gCanvasPixels; u8 gCanvasColumnStart; |