summaryrefslogtreecommitdiff
path: root/apps/gui/scrollbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/scrollbar.c')
-rw-r--r--apps/gui/scrollbar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c
index 193bb4b65a..2e807002f0 100644
--- a/apps/gui/scrollbar.c
+++ b/apps/gui/scrollbar.c
@@ -202,7 +202,8 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
202#if LCD_DEPTH > 1 202#if LCD_DEPTH > 1
203 else 203 else
204 screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0, 204 screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0,
205 STRIDE(bm.width, bm.height), 205 STRIDE(screen->screen_type,
206 bm.width, bm.height),
206 x + start, y, size, height); 207 x + start, y, size, height);
207#endif 208#endif
208 } else { 209 } else {
@@ -214,7 +215,8 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
214#if LCD_DEPTH > 1 215#if LCD_DEPTH > 1
215 else 216 else
216 screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0, 217 screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0,
217 STRIDE(bm.width, bm.height), 218 STRIDE(screen->screen_type,
219 bm.width, bm.height),
218 x, y + start, width, size); 220 x, y + start, width, size);
219#endif 221#endif
220 } 222 }