aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-01 11:46:30 +0200
committerTectu <joel@unormal.org>2012-06-01 11:46:30 +0200
commitf96700a1fe12e33475143439823061f3b88ee57e (patch)
tree59881adf4fb27fae295e28ba3c919d691094192c /glcd.c
parent08511c7839885024b3c4cde5e8bb8f2398484b45 (diff)
downloaduGFX-f96700a1fe12e33475143439823061f3b88ee57e.tar.gz
uGFX-f96700a1fe12e33475143439823061f3b88ee57e.tar.bz2
uGFX-f96700a1fe12e33475143439823061f3b88ee57e.zip
cleanup
Diffstat (limited to 'glcd.c')
-rw-r--r--[-rwxr-xr-x]glcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/glcd.c b/glcd.c
index 4d6c4e66..bd9b269b 100755..100644
--- a/glcd.c
+++ b/glcd.c
@@ -69,16 +69,16 @@ static __inline uint16_t lcdReadReg(uint16_t lcdReg) {
}
uint16_t lcdGetHeight(void) {
- if(orientation == portrait || orientation == portraitInv)
+ if(PORTRAIT)
return lcd_height;
- else if(orientation == landscape || orientation == landscapeInv)
+ else if(LANDSCAPE)
return lcd_width;
}
uint16_t lcdGetWidth(void) {
- if(orientation == portrait || orientation == portraitInv)
+ if(PORTRAIT)
return lcd_width;
- else if(orientation == landscape || orientation == landscapeInv)
+ else if(LANDSCAPE)
return lcd_height;
}