1
0
Fork 0
forked from len0rd/rockbox

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:
Jonathan Gordon 2010-05-20 15:27:17 +00:00
parent b8176a6761
commit f531adc312
3 changed files with 8 additions and 8 deletions

View file

@ -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); 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 width, int height, int items,
int min_shown, int max_shown, int min_shown, int max_shown,
unsigned flags) unsigned flags)
@ -202,15 +202,15 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
} }
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
if (bm.format == FORMAT_MONO) if (bm->format == FORMAT_MONO)
#endif #endif
screen->mono_bitmap_part(bm.data, 0, 0, screen->mono_bitmap_part(bm->data, 0, 0,
bm.width, x, y, width, height); bm->width, x, y, width, height);
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
else 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, STRIDE(screen->screen_type,
bm.width, bm.height), bm->width, bm->height),
x, y, width, height); x, y, width, height);
#endif #endif
} }

View file

@ -53,7 +53,7 @@ extern void gui_scrollbar_draw(struct screen * screen, int x, int y,
int width, int height, int items, int width, int height, int items,
int min_shown, int max_shown, int min_shown, int max_shown,
unsigned flags); 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 x, int y,
int width, int height, int items, int width, int height, int items,
int min_shown, int max_shown, int min_shown, int max_shown,

View file

@ -178,7 +178,7 @@ static void draw_progressbar(struct gui_wps *gwps,
} }
if (pb->have_bitmap_pb) 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, pb->x, y, pb->width, pb->bm.height,
length, 0, elapsed, HORIZONTAL); length, 0, elapsed, HORIZONTAL);
else else