aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.h
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-04 23:03:46 +0200
committerTectu <joel@unormal.org>2012-06-04 23:03:46 +0200
commit8956b50eb2084a45e0e5b25e5db5a6fb11dcaa9d (patch)
tree306fa41d6ee4d5b061dfc8d8515072060e119932 /glcd.h
parent170fcca9bb7a5c884a021005fc4460255831d471 (diff)
downloaduGFX-8956b50eb2084a45e0e5b25e5db5a6fb11dcaa9d.tar.gz
uGFX-8956b50eb2084a45e0e5b25e5db5a6fb11dcaa9d.tar.bz2
uGFX-8956b50eb2084a45e0e5b25e5db5a6fb11dcaa9d.zip
cleanups
Diffstat (limited to 'glcd.h')
-rw-r--r--glcd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/glcd.h b/glcd.h
index 16ce20bf..280c0a76 100644
--- a/glcd.h
+++ b/glcd.h
@@ -40,10 +40,8 @@
#define Cyan 0x7FFF
#define Yellow 0xFFE0
-#define RGB565CONVERT(red, green, blue)\
-(uint16_t)( (( red >> 3 ) << 11 ) | \
-(( green >> 2 ) << 5 ) | \
-( blue >> 3 ))
+#define RGB565CONVERT(red, green, blue) \
+(uint16_t)( (( red >> 3 ) << 11 ) | (( green >> 2 ) << 5 ) | ( blue >> 3 ))
enum orientation {portrait, landscape, portraitInv, landscapeInv};
enum filles{frame, filled};