moved SCREEN_HEIGHT and SCREEN_WIDTH macros to glcdconf.h

ugfx_release_2.6
Tectu 2012-06-20 00:03:35 +02:00
parent 38b5410f2d
commit b3fedc8b80
3 changed files with 4 additions and 5 deletions

4
glcd.c
View File

@ -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);

3
glcd.h
View File

@ -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)

View File

@ -1,6 +1,8 @@
#ifndef GLCDCONF_H
#define GLCDCONF_H
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320
/***** LCD CONTROLLER *****/
#define LCD_USE_SSD1289