Compare commits
3 Commits
ci/perf_te
...
release/v9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcf844b3a9 | ||
|
|
09d9aaa846 | ||
|
|
ecbd2ba4cd |
1
.github/workflows/check_style.yml
vendored
1
.github/workflows/check_style.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository: szepeviktor/astyle
|
repository: szepeviktor/astyle
|
||||||
path: astyle
|
path: astyle
|
||||||
|
ref: v3.4.10
|
||||||
- name: Install astyle
|
- name: Install astyle
|
||||||
run: |
|
run: |
|
||||||
cd astyle/build/gcc/
|
cd astyle/build/gcc/
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ See some examples of creating widgets, using layouts and applying styles. You wi
|
|||||||
|
|
||||||
For more examples check out the [Examples](https://github.com/lvgl/lvgl/tree/master/examples) folder.
|
For more examples check out the [Examples](https://github.com/lvgl/lvgl/tree/master/examples) folder.
|
||||||
|
|
||||||
|
|
||||||
### Hello world label
|
### Hello world label
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -24,6 +24,7 @@ lvgl_cwd = cwd + '/../../'
|
|||||||
|
|
||||||
lvgl_src_cwd = lvgl_cwd + 'src/'
|
lvgl_src_cwd = lvgl_cwd + 'src/'
|
||||||
inc = inc + [lvgl_src_cwd]
|
inc = inc + [lvgl_src_cwd]
|
||||||
|
src = src + Glob(os.path.join(lvgl_src_cwd,'*.c'))
|
||||||
for root, dirs, files in os.walk(lvgl_src_cwd):
|
for root, dirs, files in os.walk(lvgl_src_cwd):
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
current_path = os.path.join(root, dir)
|
current_path = os.path.join(root, dir)
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
#ifdef __RTTHREAD__
|
#ifdef __RTTHREAD__
|
||||||
|
|
||||||
#include <lvgl.h>
|
|
||||||
|
|
||||||
#define LV_RTTHREAD_INCLUDE <rtthread.h>
|
#define LV_RTTHREAD_INCLUDE <rtthread.h>
|
||||||
#include LV_RTTHREAD_INCLUDE
|
#include LV_RTTHREAD_INCLUDE
|
||||||
|
|
||||||
|
|||||||
@@ -438,8 +438,7 @@ static void draw_letter(lv_draw_unit_t * draw_unit, lv_draw_glyph_dsc_t * dsc,
|
|||||||
dsc->g = &g;
|
dsc->g = &g;
|
||||||
cb(draw_unit, dsc, NULL, NULL);
|
cb(draw_unit, dsc, NULL, NULL);
|
||||||
|
|
||||||
if(g.resolved_font && font->release_glyph) {
|
lv_font_glyph_release_draw_data(&g);
|
||||||
font->release_glyph(font, &g);
|
|
||||||
}
|
|
||||||
LV_PROFILER_END;
|
LV_PROFILER_END;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,15 @@ const void * lv_font_get_glyph_bitmap(lv_font_glyph_dsc_t * g_dsc, uint32_t lett
|
|||||||
return font_p->get_glyph_bitmap(g_dsc, letter, draw_buf);
|
return font_p->get_glyph_bitmap(g_dsc, letter, draw_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lv_font_glyph_release_draw_data(lv_font_glyph_dsc_t * g_dsc)
|
||||||
|
{
|
||||||
|
const lv_font_t * font = g_dsc->resolved_font;
|
||||||
|
|
||||||
|
if(font != NULL && font->release_glyph) {
|
||||||
|
font->release_glyph(font, g_dsc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
|
bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
|
||||||
uint32_t letter_next)
|
uint32_t letter_next)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -133,6 +133,13 @@ const void * lv_font_get_glyph_bitmap(lv_font_glyph_dsc_t * g_dsc, uint32_t lett
|
|||||||
bool lv_font_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
|
bool lv_font_get_glyph_dsc(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t letter,
|
||||||
uint32_t letter_next);
|
uint32_t letter_next);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Release the bitmap of a font.
|
||||||
|
* @note You must call @lv_font_get_glyph_dsc to get @g_dsc (@lv_font_glyph_dsc_t) before you can call this function.
|
||||||
|
* @param g_dsc the glyph descriptor including which font to use, which supply the glyph_index and the format.
|
||||||
|
*/
|
||||||
|
void lv_font_glyph_release_draw_data(lv_font_glyph_dsc_t * g_dsc);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the width of a glyph with kerning
|
* Get the width of a glyph with kerning
|
||||||
* @param font pointer to a font
|
* @param font pointer to a font
|
||||||
|
|||||||
Reference in New Issue
Block a user