diff options
-rw-r--r-- | glcd.c | 4 | ||||
-rw-r--r-- | glcd.h | 3 | ||||
-rw-r--r-- | glcdconf.h | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -11,8 +11,8 @@ const uint8_t* font; void lcdInit(void) { lld_lcdInit(); - lcd_width = SCREEN_WIDTH; - lcd_height = SCREEN_HEIGHT; + lcd_width = lcdGetWidth(); + lcd_height = lcdGetHeight(); lcdSetOrientation(portrait); lcdSetFontTransparency(transparent); @@ -7,9 +7,6 @@ #include "ssd1289_lld.h" #include "s6d1121_lld.h" -#define SCREEN_WIDTH 240 -#define SCREEN_HEIGHT 320 - #define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv) #define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv) @@ -1,6 +1,8 @@ #ifndef GLCDCONF_H #define GLCDCONF_H +#define SCREEN_WIDTH 240 +#define SCREEN_HEIGHT 320 /***** LCD CONTROLLER *****/ #define LCD_USE_SSD1289 |