diff options
author | Tectu <joel@unormal.org> | 2012-06-01 11:46:30 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-01 11:46:30 +0200 |
commit | f96700a1fe12e33475143439823061f3b88ee57e (patch) | |
tree | 59881adf4fb27fae295e28ba3c919d691094192c /glcd.c | |
parent | 08511c7839885024b3c4cde5e8bb8f2398484b45 (diff) | |
download | uGFX-f96700a1fe12e33475143439823061f3b88ee57e.tar.gz uGFX-f96700a1fe12e33475143439823061f3b88ee57e.tar.bz2 uGFX-f96700a1fe12e33475143439823061f3b88ee57e.zip |
cleanup
Diffstat (limited to 'glcd.c')
-rw-r--r--[-rwxr-xr-x] | glcd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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;
}
|