diff options
Diffstat (limited to 'apps/gui/scrollbar.c')
-rw-r--r-- | apps/gui/scrollbar.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 67bf60de3f..317c55cdc7 100644 --- a/apps/gui/scrollbar.c +++ b/apps/gui/scrollbar.c | |||
@@ -170,7 +170,7 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y, | |||
170 | screen->fillrect(inner_x, inner_y, inner_wd, inner_ht); | 170 | screen->fillrect(inner_x, inner_y, inner_wd, inner_ht); |
171 | } | 171 | } |
172 | 172 | ||
173 | void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, int y, | 173 | void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x, int y, |
174 | int width, int height, int items, | 174 | int width, int height, int items, |
175 | int min_shown, int max_shown, | 175 | int min_shown, int max_shown, |
176 | unsigned flags) | 176 | unsigned flags) |
@@ -202,15 +202,15 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, | |||
202 | } | 202 | } |
203 | 203 | ||
204 | #if LCD_DEPTH > 1 | 204 | #if LCD_DEPTH > 1 |
205 | if (bm.format == FORMAT_MONO) | 205 | if (bm->format == FORMAT_MONO) |
206 | #endif | 206 | #endif |
207 | screen->mono_bitmap_part(bm.data, 0, 0, | 207 | screen->mono_bitmap_part(bm->data, 0, 0, |
208 | bm.width, x, y, width, height); | 208 | bm->width, x, y, width, height); |
209 | #if LCD_DEPTH > 1 | 209 | #if LCD_DEPTH > 1 |
210 | else | 210 | else |
211 | screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0, | 211 | screen->transparent_bitmap_part((fb_data *)bm->data, 0, 0, |
212 | STRIDE(screen->screen_type, | 212 | STRIDE(screen->screen_type, |
213 | bm.width, bm.height), | 213 | bm->width, bm->height), |
214 | x, y, width, height); | 214 | x, y, width, height); |
215 | #endif | 215 | #endif |
216 | } | 216 | } |