1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix: minor fixes to make the CI work

This commit is contained in:
Gabor Kiss-Vamosi 2023-02-20 22:18:56 +01:00
parent 1a87e65959
commit f28d18dda4
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#include "../../lv_examples.h"
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES && 0
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
#define CANVAS_WIDTH 50
#define CANVAS_HEIGHT 50
@ -17,7 +17,7 @@ void lv_example_canvas_2(void)
/*Create a canvas and initialize its palette*/
lv_obj_t * canvas = lv_canvas_create(lv_scr_act());
lv_canvas_set_buffer(canvas, cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, LV_IMG_CF_INDEXED_1BIT);
lv_canvas_set_buffer(canvas, cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, LV_COLOR_FORMAT_I1);
lv_canvas_set_palette(canvas, 0, LV_COLOR_CHROMA_KEY);
lv_canvas_set_palette(canvas, 1, lv_palette_main(LV_PALETTE_RED));

View File

@ -297,7 +297,7 @@ lv_group_t * lv_indev_get_group(const lv_indev_t * indev)
lv_disp_t * lv_indev_get_disp(const lv_indev_t * indev)
{
if(indev == NULL) return LV_INDEV_TYPE_NONE;
if(indev == NULL) return NULL;
return indev->disp;
}