diff --git a/src/base/system_info.h b/src/base/system_info.h index 39d1c2ee1..c4eff7f49 100644 --- a/src/base/system_info.h +++ b/src/base/system_info.h @@ -1,4 +1,4 @@ -/** +/** * File: system_info.h * Author: Li XianJing * 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 diff --git a/src/lcd/rgb565.h b/src/lcd/rgb565.h index 958f1c0a5..9f15adf19 100644 --- a/src/lcd/rgb565.h +++ b/src/lcd/rgb565.h @@ -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) {