mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 18:22:42 +08:00
arch(typos): fix typos in the codebase (#9636)
This commit is contained in:
@@ -4,6 +4,8 @@ extend-exclude = [
|
||||
"docs/src/_static/css/fontawesome.min.css",
|
||||
"docs/CHANGELOG.rst",
|
||||
"docs/README_*",
|
||||
"docs/src/_static/css/*.min.css",
|
||||
"docs/src/_static/jquery.js",
|
||||
"libs/",
|
||||
"scripts/gen_json/create_fake_lib_c.py",
|
||||
"src/libs/",
|
||||
@@ -26,6 +28,8 @@ extend-ignore-re = [
|
||||
"ist",
|
||||
"ACI\\)",
|
||||
"ACI \\(",
|
||||
"glIndexs",
|
||||
"glIsEnabledi",
|
||||
"PNGs",
|
||||
"STRUCT_FIELDs",
|
||||
]
|
||||
@@ -42,6 +46,10 @@ extend-ignore-identifiers-re = [
|
||||
[default.extend-identifiers]
|
||||
"aout_p" = "aout_p"
|
||||
"PN" = "PN"
|
||||
"rin" = "rin"
|
||||
"mask_rin_param" = "mask_rin_param"
|
||||
"thr_tick" = "thr_tick"
|
||||
"VGLITE_BLIT_SPLIT_THR" = "VGLITE_BLIT_SPLIT_THR"
|
||||
"yout" = "yout"
|
||||
# Typo in STM32 HAL
|
||||
"FBStartAdress" = "FBStartAdress"
|
||||
|
||||
@@ -340,13 +340,13 @@ static void create_background_panel(lv_obj_t * panel)
|
||||
lv_obj_t * background_blur_title = add_title_to_row(bg_row, "");
|
||||
lv_label_bind_text(background_blur_title, &background_blur_subject, "Background Blur %d");
|
||||
|
||||
lv_obj_t * backgorund_blur_slider = lv_slider_create(bg_row);
|
||||
lv_slider_bind_value(backgorund_blur_slider, &background_blur_subject);
|
||||
lv_obj_set_width(backgorund_blur_slider, LV_PCT(100));
|
||||
lv_slider_set_min_value(backgorund_blur_slider, 0);
|
||||
lv_slider_set_max_value(backgorund_blur_slider, 100);
|
||||
lv_obj_t * background_blur_slider = lv_slider_create(bg_row);
|
||||
lv_slider_bind_value(background_blur_slider, &background_blur_subject);
|
||||
lv_obj_set_width(background_blur_slider, LV_PCT(100));
|
||||
lv_slider_set_min_value(background_blur_slider, 0);
|
||||
lv_slider_set_max_value(background_blur_slider, 100);
|
||||
|
||||
style_slider(backgorund_blur_slider, SLIDER_COLOR);
|
||||
style_slider(background_blur_slider, SLIDER_COLOR);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ LVGL v9.5.0 continues expanding MPU capabilities while maintaining the lightness
|
||||
- **fix(gltf): avoid resetting value_changed node attribute** [9674](https://github.com/lvgl/lvgl/pull/9674)
|
||||
- **fix(gltf): remove designated initializers causing warnings** [9676](https://github.com/lvgl/lvgl/pull/9676)
|
||||
- **fix(gltf/data): add missing extern "C" to header file** [9679](https://github.com/lvgl/lvgl/pull/9679)
|
||||
- **fix(ibl_sampler): restore gl state and add missing ressources deletion** [9678](https://github.com/lvgl/lvgl/pull/9678)
|
||||
- **fix(ibl_sampler): restore gl state and add missing resources deletion** [9678](https://github.com/lvgl/lvgl/pull/9678)
|
||||
- **fix(stdlib): wrong variable name when mem_add_junk is enabled** [9677](https://github.com/lvgl/lvgl/pull/9677)
|
||||
- **fix(fbdev): add missing errno.h include** [9673](https://github.com/lvgl/lvgl/pull/9673)
|
||||
- **fix(image): add transform support for AL88 color format images** [9627](https://github.com/lvgl/lvgl/pull/9627)
|
||||
@@ -326,7 +326,7 @@ LVGL v9.5.0 continues expanding MPU capabilities while maintaining the lightness
|
||||
- **fix(fs): set data to NULL if read file failed** [9156](https://github.com/lvgl/lvgl/pull/9156)
|
||||
- **fix(keyboard): remove and add state to text area instead of keyboard** [9105](https://github.com/lvgl/lvgl/pull/9105)
|
||||
- **fix(indev): Abort sending Keypad INDEV_ACT events following invalid return** [9135](https://github.com/lvgl/lvgl/pull/9135)
|
||||
- **fix(xml): correclty use integer format specifier** [9133](https://github.com/lvgl/lvgl/pull/9133)
|
||||
- **fix(xml): correctly use integer format specifier** [9133](https://github.com/lvgl/lvgl/pull/9133)
|
||||
- **fix(test): fix memory leak on failed screenshot compare** [9088](https://github.com/lvgl/lvgl/pull/9088)
|
||||
- **fix(scale): incorrect decrement in lv_scale_set_line_needle_value loop** [9081](https://github.com/lvgl/lvgl/pull/9081)
|
||||
- **fix(vg_lite): fix warning if LV_LOG option is closed** [9094](https://github.com/lvgl/lvgl/pull/9094)
|
||||
|
||||
@@ -1213,7 +1213,7 @@ span.ubi {
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Tigher Tables
|
||||
* Tighter Tables
|
||||
* -------------
|
||||
* Here, we introduce 7 levels of table "tightening" with increasingly reduced space
|
||||
* and size. The large number of options here are merely for flexibility, giving the
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: NanoVG Draw Unit
|
||||
description: "NanoVG is a lightweight, antialiased 2D vector graphics library built on top of OpenGL/OpenGL ES. The NanoVG draw unit integrates NanoVG as a hardware-accelerated rendering backend for LVGL, provid..."
|
||||
description: "NanoVG is a lightweight, antialiased 2D vector graphics library built on top of OpenGL/OpenGL ES. The NanoVG draw unit integrates NanoVG as a hardware-accelerated rendering backend for LVGL, provide..."
|
||||
---
|
||||
|
||||
# Introduction
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: NV3007 LCD Controller Driver
|
||||
description: "The NV3007 is a single-chip driver for 262,144-color, a-Si TFT liquid crystal display with maximum resolution of 168RGBx428 dots. It contains 252-channel source driver, a 24-channel GIP driver whic..."
|
||||
description: "The NV3007 is a single-chip driver for 262,144-color, a-Si TFT liquid crystal display with maximum resolution of 168RGBx428 dots. It contains 252-channel source driver, a 24-channel GIP driver which..."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -27,7 +27,7 @@ The software renderer is capable of rendering most typical draw tasks, including
|
||||
- draw arcs with rounded or straight endings
|
||||
- blur an area
|
||||
- draw drop shadows for any shape
|
||||
- anti-alaising for all rendering
|
||||
- anti-aliasing for all rendering
|
||||
- and many more
|
||||
|
||||
### Color Format Support
|
||||
|
||||
@@ -25,7 +25,7 @@ static void add_dynamic(void)
|
||||
lv_translation_tag_dsc_t * tag;
|
||||
tag = lv_translation_add_tag(pack, "table");
|
||||
lv_translation_set_tag_translation(pack, tag, 0, "It's a table");
|
||||
lv_translation_set_tag_translation(pack, tag, 1, "Das is ein Tish");
|
||||
lv_translation_set_tag_translation(pack, tag, 1, "Das ist ein Tisch");
|
||||
|
||||
tag = lv_translation_add_tag(pack, "chair");
|
||||
lv_translation_set_tag_translation(pack, tag, 0, "It's a chair");
|
||||
|
||||
@@ -219,7 +219,7 @@ extern "C" {
|
||||
|
||||
/* Fonts */
|
||||
#define LV_EVE_EVE_NUMCHAR_PERFONT ((uint32_t) 128UL) /* number of font characters per bitmap handle */
|
||||
#define LV_EVE_EVE_FONT_TABLE_SIZE ((uint32_t) 148UL) /* size of the font table - utilized for loopup by the graphics engine */
|
||||
#define LV_EVE_EVE_FONT_TABLE_SIZE ((uint32_t) 148UL) /* size of the font table - utilized for lookup by the graphics engine */
|
||||
#define LV_EVE_EVE_FONT_TABLE_POINTER ((uint32_t) 0xFFFFCUL) /* pointer to the inbuilt font tables starting from bitmap handle 16 */
|
||||
|
||||
/* Audio sample type defines */
|
||||
|
||||
@@ -203,7 +203,7 @@ const void * lv_font_get_glyph_bitmap(lv_font_glyph_dsc_t * g_dsc, lv_draw_buf_t
|
||||
|
||||
/**
|
||||
* Return the bitmap as it is. It works only if the font stores the bitmap in
|
||||
* a non-volitile memory.
|
||||
* a non-volatile memory.
|
||||
* @param g_dsc the glyph descriptor including which font to use, which supply the glyph_index
|
||||
* and the format.
|
||||
* @return the bitmap as it is
|
||||
|
||||
@@ -53,7 +53,7 @@ typedef enum {
|
||||
LV_BUTTONMATRIX_CTRL_NO_REPEAT = 0x0020, /**< Do not emit LV_EVENT_LONG_PRESSED_REPEAT events while button is long-pressed. */
|
||||
LV_BUTTONMATRIX_CTRL_DISABLED = 0x0040, /**< Disables button like LV_STATE_DISABLED on normal Widgets. */
|
||||
LV_BUTTONMATRIX_CTRL_CHECKABLE = 0x0080, /**< Enable toggling of LV_STATE_CHECKED when clicked. */
|
||||
LV_BUTTONMATRIX_CTRL_CHECKED = 0x0100, /**< Make the button checked. It will use the :cpp:enumerator:`LV_STATE_CHECHKED` styles. */
|
||||
LV_BUTTONMATRIX_CTRL_CHECKED = 0x0100, /**< Make the button checked. It will use the :cpp:enumerator:`LV_STATE_CHECKED` styles. */
|
||||
LV_BUTTONMATRIX_CTRL_CLICK_TRIG = 0x0200, /**< 1: Enables sending LV_EVENT_VALUE_CHANGE on CLICK, 0: sends LV_EVENT_VALUE_CHANGE on PRESS. */
|
||||
LV_BUTTONMATRIX_CTRL_POPOVER = 0x0400, /**< Show button text in a pop-over while being pressed. */
|
||||
LV_BUTTONMATRIX_CTRL_RECOLOR = 0x0800, /**< Enable text recoloring with `#color` */
|
||||
|
||||
@@ -304,7 +304,7 @@ if __name__ == '__main__':
|
||||
help=(
|
||||
"path to a custom header file. When using this to supply a custom"
|
||||
"header file you MUST insure that any LVGL includes are done so "
|
||||
"they are relitive to the LVGL repository root folder.\n\n"
|
||||
"they are relative to the LVGL repository root folder.\n\n"
|
||||
'#include "src/lvgl_private.h"\n\n'
|
||||
"If you have includes to header files that are not LVGL then you "
|
||||
"will need to add the include locations for those header files "
|
||||
|
||||
@@ -52,7 +52,7 @@ There are 3 possibilities when handling these files
|
||||
In this case we create a new `file1.mpk` with a single history entry.
|
||||
|
||||
3. `file1.mpk` exists but `file1.json` doesn't: Happens when an old config isn't tested anymore for any reason.
|
||||
In this case we simpyl copy the old `file1.mpk`
|
||||
In this case we simply copy the old `file1.mpk`
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -141,7 +141,7 @@ def main():
|
||||
|
||||
# Keep old mpk files
|
||||
for mpk_file in input_mpk:
|
||||
print(f"Couldn't find new reults to add to {mpk_file}. Copying it")
|
||||
print(f"Couldn't find new results to add to {mpk_file}. Copying it")
|
||||
mpk_path = path(input_folder, mpk_file)
|
||||
output_path = path(output_folder, mpk_file)
|
||||
shutil.copy2(mpk_path, output_path)
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
{"log":"\r\n","stream":"stdout","time":"2025-03-14T20:32:17.429942853Z"}
|
||||
{"log":"\r\n","stream":"stdout","time":"2025-03-14T20:32:17.429949053Z"}
|
||||
{"log":"\r\n","stream":"stdout","time":"2025-03-14T20:32:17.429958813Z"}
|
||||
{"log":"Now bootstraping the kernel ...\r\n","stream":"stdout","time":"2025-03-14T20:32:17.430034164Z"}
|
||||
{"log":"Now bootstrapping the kernel ...\r\n","stream":"stdout","time":"2025-03-14T20:32:17.430034164Z"}
|
||||
{"log":"SO3: allocating a kernel heap of 33554404 bytes at address c0044000.\r\n","stream":"stdout","time":"2025-03-14T20:32:17.673343683Z"}
|
||||
{"log":"memory_init: Device tree virt addr: c3a00000\r\n","stream":"stdout","time":"2025-03-14T20:32:17.673549157Z"}
|
||||
{"log":"memory_init: relocating the device tree from 0xc3a00000 to 0xc21a4000 (size of 4224 bytes)\r\n","stream":"stdout","time":"2025-03-14T20:32:17.673910253Z"}
|
||||
|
||||
@@ -137,7 +137,7 @@ void lv_draw_nanovg_label(lv_draw_task_t * t, const lv_draw_label_dsc_t * dsc, c
|
||||
**********************/
|
||||
|
||||
static bool draw_letter_clip_areas(lv_draw_task_t * t, const lv_draw_glyph_dsc_t * dsc, lv_area_t * letter_area,
|
||||
lv_area_t * cliped_area)
|
||||
lv_area_t * clipped_area)
|
||||
{
|
||||
*letter_area = *dsc->letter_coords;
|
||||
|
||||
@@ -158,7 +158,7 @@ static bool draw_letter_clip_areas(lv_draw_task_t * t, const lv_draw_glyph_dsc_t
|
||||
lv_area_move(letter_area, dsc->letter_coords->x1, dsc->letter_coords->y1);
|
||||
}
|
||||
|
||||
if(!lv_area_intersect(cliped_area, &t->clip_area, letter_area)) {
|
||||
if(!lv_area_intersect(clipped_area, &t->clip_area, letter_area)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Bleding operations with premultiplied argb8888 require division.
|
||||
* Blending operations with premultiplied argb8888 require division.
|
||||
* As division is not supported for integer values in neon we don't define these functions
|
||||
*/
|
||||
#ifndef LV_DRAW_SW_ARGB8888_PREMULTIPLIED_BLEND_NORMAL_TO_RGB565_WITH_OPA
|
||||
|
||||
@@ -171,7 +171,7 @@ extern "C" {
|
||||
#define FB_NO_OVERLAY -1
|
||||
|
||||
#ifdef CONFIG_FB_OVERLAY
|
||||
# define FB_ACCL_TRANSP 0x01 /* Hardware tranparency support */
|
||||
# define FB_ACCL_TRANSP 0x01 /* Hardware transparency support */
|
||||
# define FB_ACCL_CHROMA 0x02 /* Hardware chromakey support */
|
||||
# define FB_ACCL_COLOR 0x04 /* Hardware color support */
|
||||
# define FB_ACCL_AREA 0x08 /* Hardware support area selection */
|
||||
|
||||
@@ -56,7 +56,7 @@ lv_display_t * lv_wayland_window_create(uint32_t hor_res, uint32_t ver_res, char
|
||||
lv_wl_window_t * window = lv_ll_ins_tail(&lv_wl_ctx.window_ll);
|
||||
LV_ASSERT_MALLOC(window);
|
||||
if(!window) {
|
||||
LV_LOG_ERROR("Failed to allocate memory fo window");
|
||||
LV_LOG_ERROR("Failed to allocate memory for window");
|
||||
goto alloc_window_err;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ static void draw_cursor(lv_event_t * e);
|
||||
static void auto_hide_characters(lv_obj_t * obj);
|
||||
static void auto_hide_characters_cancel(lv_obj_t * obj);
|
||||
static inline bool is_valid_but_non_printable_char(const uint32_t letter);
|
||||
static void lv_textarea_scroll_to_cusor_pos(lv_obj_t * obj, int32_t pos);
|
||||
static void lv_textarea_scroll_to_cursor_pos(lv_obj_t * obj, int32_t pos);
|
||||
static lv_result_t add_char(lv_obj_t * obj, uint32_t c);
|
||||
static void add_text(lv_obj_t * obj, const char * txt);
|
||||
static void set_cursor_pos_internal(lv_obj_t * obj, int32_t pos);
|
||||
@@ -371,7 +371,7 @@ void lv_textarea_set_cursor_pos(lv_obj_t * obj, int32_t pos)
|
||||
/*Position the label to make the cursor visible*/
|
||||
lv_obj_update_layout(obj);
|
||||
|
||||
lv_textarea_scroll_to_cusor_pos(obj, pos);
|
||||
lv_textarea_scroll_to_cursor_pos(obj, pos);
|
||||
}
|
||||
|
||||
void lv_textarea_set_cursor_click_pos(lv_obj_t * obj, bool en)
|
||||
@@ -930,7 +930,7 @@ static void lv_textarea_event(const lv_obj_class_t * class_p, lv_event_t * e)
|
||||
}
|
||||
else if(code == LV_EVENT_SIZE_CHANGED || code == LV_EVENT_STYLE_CHANGED) {
|
||||
lv_textarea_t * ta = (lv_textarea_t *)obj;
|
||||
lv_textarea_scroll_to_cusor_pos(obj, ta->cursor.pos);
|
||||
lv_textarea_scroll_to_cursor_pos(obj, ta->cursor.pos);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1406,7 +1406,7 @@ static inline bool is_valid_but_non_printable_char(const uint32_t letter)
|
||||
return false;
|
||||
}
|
||||
|
||||
static void lv_textarea_scroll_to_cusor_pos(lv_obj_t * obj, int32_t pos)
|
||||
static void lv_textarea_scroll_to_cursor_pos(lv_obj_t * obj, int32_t pos)
|
||||
{
|
||||
lv_textarea_t * ta = (lv_textarea_t *)obj;
|
||||
|
||||
@@ -1482,7 +1482,7 @@ static void add_text(lv_obj_t * obj, const char * txt)
|
||||
}
|
||||
|
||||
lv_obj_update_layout(obj);
|
||||
lv_textarea_scroll_to_cusor_pos(obj, ta->cursor.pos);
|
||||
lv_textarea_scroll_to_cursor_pos(obj, ta->cursor.pos);
|
||||
refr_cursor_area(obj);
|
||||
/*Move the cursor after the new character*/
|
||||
lv_obj_send_event(obj, LV_EVENT_VALUE_CHANGED, NULL);
|
||||
|
||||
@@ -16,10 +16,10 @@ void tearDown(void)
|
||||
void test_radius_mask_overflow(void)
|
||||
{
|
||||
int width = 1280;
|
||||
int heigh = 1280;
|
||||
int height = 1280;
|
||||
lv_obj_t * obj = lv_obj_create(lv_screen_active());
|
||||
lv_obj_set_size(obj, width * 2, heigh * 2);
|
||||
lv_obj_set_style_radius(obj, heigh, LV_PART_MAIN);
|
||||
lv_obj_set_size(obj, width * 2, height * 2);
|
||||
lv_obj_set_style_radius(obj, height, LV_PART_MAIN);
|
||||
|
||||
lv_timer_handler();
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ void test_display_layers(void)
|
||||
lv_layer_sys(),
|
||||
};
|
||||
|
||||
static const lv_palette_t paletts[] = {
|
||||
static const lv_palette_t palettes[] = {
|
||||
LV_PALETTE_RED,
|
||||
LV_PALETTE_GREEN,
|
||||
LV_PALETTE_BLUE,
|
||||
@@ -536,7 +536,7 @@ void test_display_layers(void)
|
||||
lv_obj_t * obj = lv_obj_create(parents[i]);
|
||||
lv_obj_align(obj, LV_ALIGN_CENTER, 20 * i, 20 * i);
|
||||
lv_obj_set_style_opa(obj, LV_OPA_50, LV_PART_MAIN);
|
||||
lv_obj_set_style_bg_color(obj, lv_palette_main(paletts[i]), LV_PART_MAIN);
|
||||
lv_obj_set_style_bg_color(obj, lv_palette_main(palettes[i]), LV_PART_MAIN);
|
||||
|
||||
lv_obj_t * label = lv_label_create(obj);
|
||||
lv_label_set_text_fmt(label, "%s", layer_names[i]);
|
||||
|
||||
Reference in New Issue
Block a user