summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 3aa833d6a1..76c4260ec1 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -513,11 +513,13 @@ void LCDFN(puts_scroll_style_offset)(int x, int y, const unsigned char *string,
513void LCDFN(bmp_part)(const struct bitmap* bm, int src_x, int src_y, 513void LCDFN(bmp_part)(const struct bitmap* bm, int src_x, int src_y,
514 int x, int y, int width, int height) 514 int x, int y, int width, int height)
515{ 515{
516 if (bm->format == FORMAT_MONO) 516#if LCDM(DEPTH) > 1
517 LCDFN(mono_bitmap_part)((FBFN(data)*)(bm->data), 517 if (bm->format != FORMAT_MONO)
518 LCDFN(bitmap_part)((FBFN(data)*)(bm->data),
518 src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height); 519 src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
519 else 520 else
520 LCDFN(bitmap_part)((FBFN(data)*)(bm->data), 521#endif
522 LCDFN(mono_bitmap_part)(bm->data,
521 src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height); 523 src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
522} 524}
523 525