mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
fix stm32 compile
This commit is contained in:
parent
bdef65d580
commit
92b8c210f5
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user