From 8d22c272572d22df9939ebbe3684f8edaa5b019a Mon Sep 17 00:00:00 2001 From: Tectu Date: Wed, 6 Jun 2012 23:31:00 +0200 Subject: [PATCH] fixes --- glcd.h | 4 ++-- 1 file 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