diff options
Diffstat (limited to 'firmware/drivers/lcd-16bit-common.c')
-rw-r--r-- | firmware/drivers/lcd-16bit-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-16bit-common.c b/firmware/drivers/lcd-16bit-common.c index a3a6dc6663..27e6c23885 100644 --- a/firmware/drivers/lcd-16bit-common.c +++ b/firmware/drivers/lcd-16bit-common.c | |||
@@ -135,7 +135,7 @@ void lcd_fillrect(int x, int y, int width, int height) | |||
135 | fb_data *dst, *dst_end; | 135 | fb_data *dst, *dst_end; |
136 | int len, step; | 136 | int len, step; |
137 | 137 | ||
138 | if (!lcd_clip_viewport_rect(&x, &y, &width, &height, NULL, NULL)) | 138 | if (!clip_viewport_rect(vp, &x, &y, &width, &height, NULL, NULL)) |
139 | return; | 139 | return; |
140 | 140 | ||
141 | /* drawmode and optimisation */ | 141 | /* drawmode and optimisation */ |
@@ -216,7 +216,7 @@ void ICODE_ATTR lcd_mono_bitmap_part(const unsigned char *src, int src_x, | |||
216 | int width, int height) | 216 | int width, int height) |
217 | { | 217 | { |
218 | struct viewport *vp = lcd_current_viewport; | 218 | struct viewport *vp = lcd_current_viewport; |
219 | if (!lcd_clip_viewport_rect(&x, &y, &width, &height, &src_x, &src_y)) | 219 | if (!clip_viewport_rect(vp, &x, &y, &width, &height, &src_x, &src_y)) |
220 | return; | 220 | return; |
221 | 221 | ||
222 | /* move starting point */ | 222 | /* move starting point */ |
@@ -424,7 +424,7 @@ static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image, | |||
424 | unsigned dmask = 0x00000000; | 424 | unsigned dmask = 0x00000000; |
425 | int drmode = vp->drawmode; | 425 | int drmode = vp->drawmode; |
426 | 426 | ||
427 | if (!lcd_clip_viewport_rect(&x, &y, &width, &height, &src_x, &src_y)) | 427 | if (!clip_viewport_rect(vp, &x, &y, &width, &height, &src_x, &src_y)) |
428 | return; | 428 | return; |
429 | 429 | ||
430 | /* initialize blending */ | 430 | /* initialize blending */ |