diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-02-04 09:11:37 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-02-04 09:11:37 +0100 |
commit | 851e5fb09bdc086d734647128fd3051c3a8528e2 (patch) | |
tree | 0d6bb9010e752bf71c2a4bb3ec93c15d54388a6e /include/gdisp/lld | |
parent | 58eaf1059161ee0db5e8eff20bb0490ca3012384 (diff) | |
download | uGFX-851e5fb09bdc086d734647128fd3051c3a8528e2.tar.gz uGFX-851e5fb09bdc086d734647128fd3051c3a8528e2.tar.bz2 uGFX-851e5fb09bdc086d734647128fd3051c3a8528e2.zip |
small GDISP fix - Thanks to George Lucian
Diffstat (limited to 'include/gdisp/lld')
-rw-r--r-- | include/gdisp/lld/gdisp_lld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gdisp/lld/gdisp_lld.h b/include/gdisp/lld/gdisp_lld.h index 76b698bc..6edaa0d4 100644 --- a/include/gdisp/lld/gdisp_lld.h +++ b/include/gdisp/lld/gdisp_lld.h @@ -366,7 +366,7 @@ #define RGB2COLOR(r,g,b) ((color_t)((((r) & 0xF8)<<8) | (((g) & 0xFC)<<3) | (((b) & 0xF8)>>3)))
#define HTML2COLOR(h) ((color_t)((((h) & 0xF80000)>>8) | (((h) & 0x00FC00)>>5) | (((h) & 0x0000F8)>>3)))
#define RED_OF(c) (((c) & 0xF800)>>8)
- #define GREEN_OF(c) (((c)&0x007E)>>3)
+ #define GREEN_OF(c) (((c)&0x07E0)>>3)
#define BLUE_OF(c) (((c)&0x001F)<<3)
#elif GDISP_PIXELFORMAT == GDISP_PIXELFORMAT_RGB888
|