summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd-16bit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index 44d468521d..24f026b290 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -1033,11 +1033,11 @@ void lcd_scroll_fn(void)
int h_b = RGB_UNPACK_BLUE(lss_pattern) << 16;
int h_g = RGB_UNPACK_GREEN(lss_pattern) << 16;
int rstep = (h_r - ((signed)RGB_UNPACK_RED(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
int gstep = (h_g - ((signed)RGB_UNPACK_GREEN(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
int bstep = (h_b - ((signed)RGB_UNPACK_BLUE(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
unsigned int count;
fg_pattern = lss_pattern;