mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-28 04:03:45 +08:00
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:
parent
f0988b8cf8
commit
0cf71065cb
@ -526,6 +526,10 @@ class LVGLImage:
|
||||
|
||||
varname = path.basename(filename).split('.')[0]
|
||||
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'''
|
||||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
||||
#include "lvgl.h"
|
||||
|
Loading…
Reference in New Issue
Block a user