diff options
author | Tectu <joel@unormal.org> | 2012-06-06 23:31:00 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-06 23:31:00 +0200 |
commit | 8d22c272572d22df9939ebbe3684f8edaa5b019a (patch) | |
tree | 5b356365fbd272595a2cf7698b6627228bf68032 | |
parent | 08bb31506ea7c3c6fbc9792d9455ef8638d66f9d (diff) | |
download | uGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.tar.gz uGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.tar.bz2 uGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.zip |
fixes
-rw-r--r-- | glcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,8 +7,8 @@ #define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
-#define PORTRAIT (orientation == portrait || orientation == portraitInv)
-#define LANDSCAPE (orientation == landscape || orientation == landscapeInv)
+#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
+#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
/* uncomment if no board.h file used
#define LCD_DATA_PORT GPIOE
|