aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-06 23:31:00 +0200
committerTectu <joel@unormal.org>2012-06-06 23:31:00 +0200
commit8d22c272572d22df9939ebbe3684f8edaa5b019a (patch)
tree5b356365fbd272595a2cf7698b6627228bf68032
parent08bb31506ea7c3c6fbc9792d9455ef8638d66f9d (diff)
downloaduGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.tar.gz
uGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.tar.bz2
uGFX-8d22c272572d22df9939ebbe3684f8edaa5b019a.zip
fixes
-rw-r--r--glcd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/glcd.h b/glcd.h
index f075d28b..5fc6aa9b 100644
--- a/glcd.h
+++ b/glcd.h
@@ -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