pass pointers around instead of coping whole structs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26197 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8176a6761
commit
f531adc312
3 changed files with 8 additions and 8 deletions
|
@ -170,7 +170,7 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y,
|
|||
screen->fillrect(inner_x, inner_y, inner_wd, inner_ht);
|
||||
}
|
||||
|
||||
void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, int y,
|
||||
void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x, int y,
|
||||
int width, int height, int items,
|
||||
int min_shown, int max_shown,
|
||||
unsigned flags)
|
||||
|
@ -202,15 +202,15 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
|
|||
}
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
if (bm.format == FORMAT_MONO)
|
||||
if (bm->format == FORMAT_MONO)
|
||||
#endif
|
||||
screen->mono_bitmap_part(bm.data, 0, 0,
|
||||
bm.width, x, y, width, height);
|
||||
screen->mono_bitmap_part(bm->data, 0, 0,
|
||||
bm->width, x, y, width, height);
|
||||
#if LCD_DEPTH > 1
|
||||
else
|
||||
screen->transparent_bitmap_part((fb_data *)bm.data, 0, 0,
|
||||
screen->transparent_bitmap_part((fb_data *)bm->data, 0, 0,
|
||||
STRIDE(screen->screen_type,
|
||||
bm.width, bm.height),
|
||||
bm->width, bm->height),
|
||||
x, y, width, height);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ extern void gui_scrollbar_draw(struct screen * screen, int x, int y,
|
|||
int width, int height, int items,
|
||||
int min_shown, int max_shown,
|
||||
unsigned flags);
|
||||
extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm,
|
||||
extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm,
|
||||
int x, int y,
|
||||
int width, int height, int items,
|
||||
int min_shown, int max_shown,
|
||||
|
|
|
@ -178,7 +178,7 @@ static void draw_progressbar(struct gui_wps *gwps,
|
|||
}
|
||||
|
||||
if (pb->have_bitmap_pb)
|
||||
gui_bitmap_scrollbar_draw(display, pb->bm,
|
||||
gui_bitmap_scrollbar_draw(display, &pb->bm,
|
||||
pb->x, y, pb->width, pb->bm.height,
|
||||
length, 0, elapsed, HORIZONTAL);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue