forked from len0rd/rockbox
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
This commit is contained in:
parent
6223ad266e
commit
13209604c1
10 changed files with 68 additions and 79 deletions
|
|
@ -234,18 +234,7 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x,
|
|||
else if (bm->height < starty + height)
|
||||
height = bm->height - starty;
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
if (bm->format == FORMAT_MONO)
|
||||
#endif
|
||||
screen->mono_bitmap_part(bm->data, startx, starty,
|
||||
bm->width, x, y, width, height);
|
||||
#if LCD_DEPTH > 1
|
||||
else
|
||||
screen->transparent_bitmap_part((fb_data *)bm->data, startx, starty,
|
||||
STRIDE(screen->screen_type,
|
||||
bm->width, bm->height),
|
||||
x, y, width, height);
|
||||
#endif
|
||||
screen->bmp_part(bm, startx, starty, x, y, width, height);
|
||||
}
|
||||
|
||||
void show_busy_slider(struct screen *s, int x, int y, int width, int height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue