This commit is contained in:
Tectu 2012-05-28 19:52:19 +02:00
parent 7d1a46d2fc
commit 5c45cbff3f

13
glcd.c
View File

@ -77,11 +77,16 @@ static void lcdSetCursor(uint16_t x, uint16_t y) {
} }
} }
else if(DeviceCode==0x9919) { else if(DeviceCode==0x9919) {
lcdWriteReg(0x004e,x); if(orientation == portrait) {
lcdWriteReg(0x004f,y); lcdWriteReg(0x004e, x);
lcdWriteReg(0x004f, y);
} else if(orientation == landscape) {
lcdWriteReg(0x004e, y);
lcdWriteReg(0x004f, x);
}
} else { } else {
lcdWriteReg(0x0020,x); lcdWriteReg(0x0020, x);
lcdWriteReg(0x0021,y); lcdWriteReg(0x0021, y);
} }
} }