[zhoulongyu]: ipc工程 适配lvgl模拟器

This commit is contained in:
jas 2024-03-18 00:15:22 +08:00
parent 41f4182c17
commit 8c5e36b4ec
6 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@
#ifndef MONITOR_H
#define MONITOR_H
#ifdef __cplusplus
#ifdef __cplusplus[]
extern "C" {
#endif
@ -26,7 +26,7 @@ extern "C" {
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#include "../../lvgl/lvgl.h"
#endif
/*********************

View File

@ -26,7 +26,7 @@ extern "C" {
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#include "../../lvgl/lvgl.h"
#endif
#ifndef MONITOR_SDL_INCLUDE_PATH

View File

@ -26,7 +26,7 @@ extern "C" {
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#include "../../lvgl/lvgl.h"
#endif
#ifndef MONITOR_SDL_INCLUDE_PATH

View File

@ -26,7 +26,7 @@ extern "C" {
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#include "../../lvgl/lvgl.h"
#endif
#ifndef MONITOR_SDL_INCLUDE_PATH

View File

@ -261,6 +261,7 @@ static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn)
do {
entry = readdir(dir_p);
if(entry) {
#define DT_DIR 4
if(entry->d_type == DT_DIR) sprintf(fn, "/%s", entry->d_name);
else strcpy(fn, entry->d_name);
}

View File

@ -1,4 +1,4 @@
#include "lvgl/lvgl.h"
#include "../../lvgl/lvgl.h"
const uint8_t mouse_cursor_icon_map[] = {
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8