fix stm32 compile

This commit is contained in:
xianjimli 2018-04-29 19:00:47 +08:00
parent bdef65d580
commit 92b8c210f5
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/**
/**
* File: system_info.h
* Author: Li XianJing <xianjimli@hotmail.com>
* Brief: system info
@ -33,7 +33,7 @@ typedef struct _system_info_t {
float_t device_pixel_ratio;
} system_info_t;
system_info_t* system_info();
system_info_t* system_info(void);
END_C_DECLS

View File

@ -43,7 +43,7 @@ static inline color_t to_color(pixel_t pixel) {
uint16_t g = (0xff & ((pixel >> 5) << 2));
uint16_t b = (0xff & (pixel << 3));
return color_init(r, g, b, a);
return color_init(r, g, b, 0xff);
}
static inline pixel_t blend_pixel(pixel_t pixel, color_t c) {