mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix some build errors and warnings.
Change-Id: I149c00fc6ba47d5134ad4f74c364bffd24079824
This commit is contained in:
parent
dbb76896ec
commit
8f6c779ff6
4 changed files with 12 additions and 6 deletions
|
@ -104,7 +104,7 @@ enum plugin_status plugin_start(const void* parameter) {
|
|||
rb->lcd_bitmap((const fb_data*)LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT);
|
||||
#ifdef REMOTE_LOGO
|
||||
rb->lcd_remote_clear_display();
|
||||
rb->lcd_remote_bitmap((const fb_data*)REMOTE_LOGO,
|
||||
rb->lcd_remote_bitmap((const fb_remote_data*)REMOTE_LOGO,
|
||||
(x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH),
|
||||
(y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT),
|
||||
REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT);
|
||||
|
|
|
@ -600,9 +600,7 @@ int read_bmp_fd(int fd,
|
|||
resize &= ~IMG_RESIZE;
|
||||
resize |= IMG_NORESIZE;
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote = false;
|
||||
#endif
|
||||
}
|
||||
#elif !defined(PLUGIN)
|
||||
if (src_dim.width > BM_MAX_WIDTH)
|
||||
|
@ -652,9 +650,7 @@ int read_bmp_fd(int fd,
|
|||
totalsize = cformat->get_size(bm);
|
||||
else {
|
||||
totalsize = BM_SIZE(bm->width,bm->height,format,remote);
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if (!remote)
|
||||
#endif
|
||||
if (depth == 32 && read_alpha) /* account for possible 4bit alpha per pixel */
|
||||
totalsize += alphasize;
|
||||
}
|
||||
|
|
|
@ -41,6 +41,16 @@
|
|||
#define ROW_INC 1
|
||||
#define COL_INC LCD_HEIGHT
|
||||
|
||||
extern lcd_fastpixelfunc_type* const lcd_fastpixelfuncs_backdrop[];
|
||||
extern lcd_fastpixelfunc_type* const lcd_fastpixelfuncs_bgcolor[];
|
||||
|
||||
static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image,
|
||||
const unsigned char *src, int src_x,
|
||||
int src_y, int x, int y,
|
||||
int width, int height,
|
||||
int stride_image, int stride_src);
|
||||
|
||||
#include "lcd-color-common.c"
|
||||
#include "lcd-16bit-common.c"
|
||||
#include "lcd-bitmap-common.c"
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ void lcd_fillrect(int x, int y, int width, int height)
|
|||
enum fill_opt fillopt = OPT_NONE;
|
||||
fb_data *dst, *dst_end;
|
||||
int len, step;
|
||||
fb_data bits = { 0 };
|
||||
fb_data bits = { 0, 0, 0 };
|
||||
|
||||
/******************** In viewport clipping **********************/
|
||||
/* nothing to draw? */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue