forked from len0rd/rockbox
Fix build errors and warnings in the lcd drivers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30940 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b02c82e105
commit
1280f322ec
2 changed files with 8 additions and 7 deletions
|
|
@ -513,11 +513,13 @@ void LCDFN(puts_scroll_style_offset)(int x, int y, const unsigned char *string,
|
||||||
void LCDFN(bmp_part)(const struct bitmap* bm, int src_x, int src_y,
|
void LCDFN(bmp_part)(const struct bitmap* bm, int src_x, int src_y,
|
||||||
int x, int y, int width, int height)
|
int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
if (bm->format == FORMAT_MONO)
|
#if LCDM(DEPTH) > 1
|
||||||
LCDFN(mono_bitmap_part)((FBFN(data)*)(bm->data),
|
if (bm->format != FORMAT_MONO)
|
||||||
|
LCDFN(bitmap_part)((FBFN(data)*)(bm->data),
|
||||||
src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
|
src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
|
||||||
else
|
else
|
||||||
LCDFN(bitmap_part)((FBFN(data)*)(bm->data),
|
#endif
|
||||||
|
LCDFN(mono_bitmap_part)(bm->data,
|
||||||
src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
|
src_x, src_y, THIS_STRIDE(bm->width, bm->height), x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -546,14 +546,13 @@ extern void lcd_bitmap_transparent_part(const fb_data *src,
|
||||||
int height);
|
int height);
|
||||||
extern void lcd_bitmap_transparent(const fb_data *src, int x, int y,
|
extern void lcd_bitmap_transparent(const fb_data *src, int x, int y,
|
||||||
int width, int height);
|
int width, int height);
|
||||||
extern void lcd_bmp_part(const struct bitmap* bm, int src_x, int src_y,
|
|
||||||
int x, int y, int width, int height);
|
|
||||||
extern void lcd_bmp(const struct bitmap* bm, int x, int y);
|
|
||||||
#else /* LCD_DEPTH == 1 */
|
#else /* LCD_DEPTH == 1 */
|
||||||
#define lcd_mono_bitmap lcd_bitmap
|
#define lcd_mono_bitmap lcd_bitmap
|
||||||
#define lcd_mono_bitmap_part lcd_bitmap_part
|
#define lcd_mono_bitmap_part lcd_bitmap_part
|
||||||
#endif /* LCD_DEPTH */
|
#endif /* LCD_DEPTH */
|
||||||
|
extern void lcd_bmp_part(const struct bitmap* bm, int src_x, int src_y,
|
||||||
|
int x, int y, int width, int height);
|
||||||
|
extern void lcd_bmp(const struct bitmap* bm, int x, int y);
|
||||||
#endif /* HAVE_LCD_BITMAP */
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue