summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-2bit-vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-2bit-vi.c')
-rw-r--r--firmware/drivers/lcd-2bit-vi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/lcd-2bit-vi.c b/firmware/drivers/lcd-2bit-vi.c
index 7de4a57577..c464537185 100644
--- a/firmware/drivers/lcd-2bit-vi.c
+++ b/firmware/drivers/lcd-2bit-vi.c
@@ -419,7 +419,7 @@ void LCDFN(hline)(int x1, int x2, int y)
419 unsigned mask; 419 unsigned mask;
420 LCDFN(blockfunc_type) *bfunc; 420 LCDFN(blockfunc_type) *bfunc;
421 421
422 if (!LCDFN(clip_viewport_hline)(&x1, &x2, &y)) 422 if (!clip_viewport_hline(vp, &x1, &x2, &y))
423 return; 423 return;
424 424
425 width = x2 - x1 + 1; 425 width = x2 - x1 + 1;
@@ -444,7 +444,7 @@ void LCDFN(vline)(int x, int y1, int y2)
444 unsigned mask, mask_bottom; 444 unsigned mask, mask_bottom;
445 LCDFN(blockfunc_type) *bfunc; 445 LCDFN(blockfunc_type) *bfunc;
446 446
447 if (!LCDFN(clip_viewport_vline)(&x, &y1, &y2)) 447 if (!clip_viewport_vline(vp, &x, &y1, &y2))
448 return; 448 return;
449 449
450 bfunc = LCDFN(blockfuncs)[vp->drawmode]; 450 bfunc = LCDFN(blockfuncs)[vp->drawmode];
@@ -478,7 +478,7 @@ void LCDFN(fillrect)(int x, int y, int width, int height)
478 LCDFN(blockfunc_type) *bfunc; 478 LCDFN(blockfunc_type) *bfunc;
479 bool fillopt = false; 479 bool fillopt = false;
480 480
481 if (!LCDFN(clip_viewport_rect)(&x, &y, &width, &height, NULL, NULL)) 481 if (!clip_viewport_rect(vp, &x, &y, &width, &height, NULL, NULL))
482 return; 482 return;
483 483
484 if (vp->drawmode & DRMODE_INVERSEVID) 484 if (vp->drawmode & DRMODE_INVERSEVID)
@@ -559,7 +559,7 @@ void ICODE_ATTR LCDFN(mono_bitmap_part)(const unsigned char *src, int src_x,
559 unsigned data, mask, mask_bottom; 559 unsigned data, mask, mask_bottom;
560 LCDFN(blockfunc_type) *bfunc; 560 LCDFN(blockfunc_type) *bfunc;
561 561
562 if (!LCDFN(clip_viewport_rect)(&x, &y, &width, &height, &src_x, &src_y)) 562 if (!clip_viewport_rect(vp, &x, &y, &width, &height, &src_x, &src_y))
563 return; 563 return;
564 564
565 src += stride * (src_y >> 3) + src_x; /* move starting point */ 565 src += stride * (src_y >> 3) + src_x; /* move starting point */
@@ -680,7 +680,7 @@ void ICODE_ATTR LCDFN(bitmap_part)(const FBFN(data) *src, int src_x,
680 int stride_dst; 680 int stride_dst;
681 unsigned mask, mask_bottom; 681 unsigned mask, mask_bottom;
682 682
683 if (!LCDFN(clip_viewport_rect)(&x, &y, &width, &height, &src_x, &src_y)) 683 if (!clip_viewport_rect(vp, &x, &y, &width, &height, &src_x, &src_y))
684 return; 684 return;
685 685
686 src += stride * (src_y >> 3) + src_x; /* move starting point */ 686 src += stride * (src_y >> 3) + src_x; /* move starting point */