summaryrefslogtreecommitdiff
path: root/apps/gui/scrollbar.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-11-08 21:34:46 +0000
committerThomas Martitz <kugel@rockbox.org>2011-11-08 21:34:46 +0000
commit13209604c1512658e729d0bd9f1c54cf3e53568d (patch)
tree2787f9036b5c40cf79cd324f3d215bb9d48dd34a /apps/gui/scrollbar.c
parent6223ad266e556f5b8d749d5f4fe08e27385be66f (diff)
downloadrockbox-13209604c1512658e729d0bd9f1c54cf3e53568d.tar.gz
rockbox-13209604c1512658e729d0bd9f1c54cf3e53568d.zip
Add new lcd_bmp and lcd_bmp_part APIs.
This new APIs wrap around lcd_[mono|transparent]_bitmap/_part calls and handle all kinds bitmaps. The intended use is to draw bitmaps that come from read_bmp_fd/_file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30936 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/scrollbar.c')
-rw-r--r--apps/gui/scrollbar.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c
index 70d34176e1..aafd4b093a 100644
--- a/apps/gui/scrollbar.c
+++ b/apps/gui/scrollbar.c
@@ -234,18 +234,7 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x,
234 else if (bm->height < starty + height) 234 else if (bm->height < starty + height)
235 height = bm->height - starty; 235 height = bm->height - starty;
236 236
237#if LCD_DEPTH > 1 237 screen->bmp_part(bm, startx, starty, x, y, width, height);
238 if (bm->format == FORMAT_MONO)
239#endif
240 screen->mono_bitmap_part(bm->data, startx, starty,
241 bm->width, x, y, width, height);
242#if LCD_DEPTH > 1
243 else
244 screen->transparent_bitmap_part((fb_data *)bm->data, startx, starty,
245 STRIDE(screen->screen_type,
246 bm->width, bm->height),
247 x, y, width, height);
248#endif
249} 238}
250 239
251void show_busy_slider(struct screen *s, int x, int y, int width, int height) 240void show_busy_slider(struct screen *s, int x, int y, int width, int height)