mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-16 04:29:08 +00:00
fix small bug in oledDrawChar
This commit is contained in:
parent
c4e3596803
commit
59e204fe2b
2
oled.c
2
oled.c
@ -245,7 +245,7 @@ void oledDrawChar(int x, int y, char c, int zoom)
|
|||||||
int char_width = fontCharWidth(c);
|
int char_width = fontCharWidth(c);
|
||||||
const uint8_t *char_data = fontCharData(c);
|
const uint8_t *char_data = fontCharData(c);
|
||||||
|
|
||||||
if (x <= -char_width) {
|
if (x <= -char_width * zoom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user