diff options
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index 548dd96994..66c785a3aa 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c | |||
@@ -243,7 +243,7 @@ void LCDFN(hline)(int x1, int x2, int y) | |||
243 | unsigned mask; | 243 | unsigned mask; |
244 | LCDFN(blockfunc_type) *bfunc; | 244 | LCDFN(blockfunc_type) *bfunc; |
245 | 245 | ||
246 | if (!LCDFN(clip_viewport_hline)(&x1, &x2, &y)) | 246 | if (!clip_viewport_hline(vp, &x1, &x2, &y)) |
247 | return; | 247 | return; |
248 | 248 | ||
249 | width = x2 - x1 + 1; | 249 | width = x2 - x1 + 1; |
@@ -268,7 +268,7 @@ void LCDFN(vline)(int x, int y1, int y2) | |||
268 | unsigned mask, mask_bottom; | 268 | unsigned mask, mask_bottom; |
269 | LCDFN(blockfunc_type) *bfunc; | 269 | LCDFN(blockfunc_type) *bfunc; |
270 | 270 | ||
271 | if (!LCDFN(clip_viewport_vline)(&x, &y1, &y2)) | 271 | if (!clip_viewport_vline(vp, &x, &y1, &y2)) |
272 | return; | 272 | return; |
273 | 273 | ||
274 | bfunc = LCDFN(blockfuncs)[vp->drawmode]; | 274 | bfunc = LCDFN(blockfuncs)[vp->drawmode]; |
@@ -300,7 +300,7 @@ void LCDFN(fillrect)(int x, int y, int width, int height) | |||
300 | LCDFN(blockfunc_type) *bfunc; | 300 | LCDFN(blockfunc_type) *bfunc; |
301 | bool fillopt = false; | 301 | bool fillopt = false; |
302 | 302 | ||
303 | if (!LCDFN(clip_viewport_rect)(&x, &y, &width, &height, NULL, NULL)) | 303 | if (!clip_viewport_rect(vp, &x, &y, &width, &height, NULL, NULL)) |
304 | return; | 304 | return; |
305 | 305 | ||
306 | if (vp->drawmode & DRMODE_INVERSEVID) | 306 | if (vp->drawmode & DRMODE_INVERSEVID) |
@@ -378,7 +378,7 @@ void ICODE_ATTR LCDFN(bitmap_part)(const unsigned char *src, int src_x, | |||
378 | unsigned mask, mask_bottom; | 378 | unsigned mask, mask_bottom; |
379 | LCDFN(blockfunc_type) *bfunc; | 379 | LCDFN(blockfunc_type) *bfunc; |
380 | 380 | ||
381 | if (!LCDFN(clip_viewport_rect)(&x, &y, &width, &height, &src_x, &src_y)) | 381 | if (!clip_viewport_rect(vp, &x, &y, &width, &height, &src_x, &src_y)) |
382 | return; | 382 | return; |
383 | 383 | ||
384 | src += stride * (src_y >> 3) + src_x; /* move starting point */ | 384 | src += stride * (src_y >> 3) + src_x; /* move starting point */ |