Use bbx prefix for shared code
This commit is contained in:
parent
6cea4e60d6
commit
1578617560
29 changed files with 224 additions and 354 deletions
|
|
@ -17,11 +17,11 @@
|
|||
#define LV_ATTRIBUTE_MEM_ALIGN
|
||||
#endif
|
||||
|
||||
#ifndef LV_ATTRIBUTE_IMG_BB_CURSOR_IMG_DSC
|
||||
#define LV_ATTRIBUTE_IMG_BB_CURSOR_IMG_DSC
|
||||
#ifndef LV_ATTRIBUTE_IMG_BBX_CURSOR_IMG_DSC
|
||||
#define LV_ATTRIBUTE_IMG_BBX_CURSOR_IMG_DSC
|
||||
#endif
|
||||
|
||||
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_BB_CURSOR_IMG_DSC uint8_t bb_cursor_img_dsc_map[] = {
|
||||
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_BBX_CURSOR_IMG_DSC uint8_t bbx_cursor_img_dsc_map[] = {
|
||||
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8
|
||||
/*Pixel format: Alpha 8 bit, Red: 3 bit, Green: 3 bit, Blue: 2 bit*/
|
||||
0xff, 0xf7, 0xff, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
|
@ -107,9 +107,9 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_BB_CURSOR
|
|||
#endif
|
||||
};
|
||||
|
||||
const lv_img_dsc_t bb_cursor_img_dsc = {
|
||||
const lv_img_dsc_t bbx_cursor_img_dsc = {
|
||||
.header.cf = LV_COLOR_FORMAT_NATIVE_WITH_ALPHA,
|
||||
.header.w = 12,
|
||||
.header.h = 18,
|
||||
.data = bb_cursor_img_dsc_map,
|
||||
.data = bbx_cursor_img_dsc_map,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef BB_CURSOR_H
|
||||
#define BB_CURSOR_H
|
||||
#ifndef BBX_CURSOR_H
|
||||
#define BBX_CURSOR_H
|
||||
|
||||
#include "lvgl/lvgl.h"
|
||||
|
||||
/* Image description of the mouse cursor */
|
||||
extern const lv_img_dsc_t bb_cursor_img_dsc;
|
||||
extern const lv_img_dsc_t bbx_cursor_img_dsc;
|
||||
|
||||
#endif /* BB_CURSOR_H */
|
||||
#endif /* BBX_CURSOR_H */
|
||||
|
|
|
|||
2
shared/cursor/package-lock.json
generated
2
shared/cursor/package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "shared",
|
||||
"name": "cursor",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
npm i
|
||||
|
||||
./node_modules/lv_img_conv/lv_img_conv.js -f \
|
||||
-i bb_cursor_img_dsc \
|
||||
-i bbx_cursor_img_dsc \
|
||||
-c CF_TRUE_COLOR_ALPHA \
|
||||
-o cursor.c \
|
||||
cursor.png
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue