chore(script): generate C array with more paras to avoid conflicts (#4890)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -526,6 +526,10 @@ class LVGLImage:
|
|||||||
|
|
||||||
varname = path.basename(filename).split('.')[0]
|
varname = path.basename(filename).split('.')[0]
|
||||||
varname = varname.replace("-", "_")
|
varname = varname.replace("-", "_")
|
||||||
|
varname += f"_{self.cf.name.lower()}"
|
||||||
|
if self.stride != (self.w * self.cf.bpp + 7) // 8:
|
||||||
|
varname += f"_stride{self.stride}"
|
||||||
|
|
||||||
header = f'''
|
header = f'''
|
||||||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
||||||
#include "lvgl.h"
|
#include "lvgl.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user