1
0
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:
Pavol Rusnak 2018-01-14 14:55:30 +01:00
parent c4e3596803
commit 59e204fe2b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

2
oled.c
View File

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