diff options
Diffstat (limited to 'apps/gui/scrollbar.c')
-rw-r--r-- | apps/gui/scrollbar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 0f2a485b32..193bb4b65a 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 | bm.width, x + start, y, size, height); | 205 | STRIDE(bm.width, bm.height), |
206 | x + start, y, size, height); | ||
206 | #endif | 207 | #endif |
207 | } else { | 208 | } else { |
208 | #if LCD_DEPTH > 1 | 209 | #if LCD_DEPTH > 1 |
@@ -213,7 +214,8 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, | |||
213 | #if LCD_DEPTH > 1 | 214 | #if LCD_DEPTH > 1 |
214 | else | 215 | else |
215 | screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0, | 216 | screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0, |
216 | bm.width, x, y + start, width, size); | 217 | STRIDE(bm.width, bm.height), |
218 | x, y + start, width, size); | ||
217 | #endif | 219 | #endif |
218 | } | 220 | } |
219 | } | 221 | } |