forked from len0rd/rockbox
Fix STRIDE macro for multiscreen and add stride support for picture lib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6025186fd
commit
25123570c7
28 changed files with 194 additions and 112 deletions
|
|
@ -202,7 +202,8 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
|
|||
#if LCD_DEPTH > 1
|
||||
else
|
||||
screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0,
|
||||
STRIDE(bm.width, bm.height),
|
||||
STRIDE(screen->screen_type,
|
||||
bm.width, bm.height),
|
||||
x + start, y, size, height);
|
||||
#endif
|
||||
} else {
|
||||
|
|
@ -214,7 +215,8 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
|
|||
#if LCD_DEPTH > 1
|
||||
else
|
||||
screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0,
|
||||
STRIDE(bm.width, bm.height),
|
||||
STRIDE(screen->screen_type,
|
||||
bm.width, bm.height),
|
||||
x, y + start, width, size);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue