mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-22 15:31:41 +00:00
fix for text drawing being clipped... sort of
This commit is contained in:
parent
413c81bed3
commit
764a18d598
@ -55,13 +55,7 @@ void PhysicalDisplay::drawString(uint8_t mode, uint16_t x, uint16_t y, const cha
|
|||||||
for (int8_t i=0; i<strlen(str); i++) {
|
for (int8_t i=0; i<strlen(str); i++) {
|
||||||
drawCharacter(mode, x, y, str[i]);
|
drawCharacter(mode, x, y, str[i]);
|
||||||
x += xsize;
|
x += xsize;
|
||||||
if (x >= (320-xsize)/2) break; // FIXME this is a
|
if (x >= 320-xsize) break; // FIXME needs to know the actual display size?
|
||||||
// pre-scaled number, b/c
|
|
||||||
// drawCharacter is
|
|
||||||
// scaling. Klutzy. It's
|
|
||||||
// also using the ILI
|
|
||||||
// constant; what about
|
|
||||||
// the RA8875?
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user