chore: fix typos again (#8295)
Some checks failed
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_VG_LITE - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_VG_LITE - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_VG_LITE - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
Viktor Szépe
2025-07-02 13:37:43 +02:00
committed by GitHub
parent d135aed2dd
commit e778ea28b2
41 changed files with 93 additions and 76 deletions

View File

@@ -1,5 +1,5 @@
cd build
emcmake cmake ..
emmake make -j$(nproc)
echo "Built succesfully, opening index.html"
echo "Built successfully, opening index.html"
code index.html

View File

@@ -1,10 +1,13 @@
[files]
extend-exclude = [
".git/",
"docs/_static/css/fontawesome.min.css",
"docs/src/_static/css/fontawesome.min.css",
"docs/CHANGELOG.rst",
"docs/README_*",
"libs/",
"scripts/gen_json/create_fake_lib_c.py",
"src/libs/",
"docs/CHANGELOG.rst"
"zephyr/Kconfig",
]
ignore-hidden = false
@@ -13,7 +16,6 @@ extend-ignore-re = [
"\\bser[^a-z]",
"\\bfle[^a-z]",
'"Lorem ipsum .*"',
'ACI',
"Nam consectetur",
"U\\+[0-9A-F]{4}",
'\{ "[a-z]+", "[^ -~]+" \},',
@@ -23,8 +25,23 @@ extend-ignore-re = [
"CARD_INFO_SET\\(&img_multilang_avatar_.*\\)",
"ist",
"ACI\\)",
"ACI \\(",
"PNGs",
"STRUCT_FIELDs",
]
extend-ignore-identifiers-re = [
"sme_.+",
]
[default.extend-words]
# https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6loca.html
"loca" = "loca"
"viewe" = "viewe"
[default.extend-identifiers]
"aout_p" = "aout_p"
"PN" = "PN"
"thr_tick" = "thr_tick"
"VGLITE_BLIT_SPLIT_THR" = "VGLITE_BLIT_SPLIT_THR"
"yout" = "yout"

View File

@@ -100,7 +100,7 @@ change.
- begin it with "BREAKING CHANGE" if the changes break the API;
- reference to the GitHub issue or Pull Request if applicable.
(See `Linking a pull rquest to an issue <https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue>`__
(See `Linking a pull request to an issue <https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue>`__
for details.)
Some examples:

View File

@@ -180,7 +180,7 @@ Events
You can use it to, for example, customize the file sort.
- :cpp:enumerator:`LV_EVENT_VALUE_CHANGED` Sent once when any item (file) in the
``Brwoser Panel``\ 's file list is clicked.
``Browser Panel``\ 's file list is clicked.
- :cpp:enumerator:`LV_EVENT_CLICKED` Sent twice when an item in the ``Browser Panel``
is clicked: once as a result of the input-device :cpp:enumerator:`LV_EVENT_RELEASED`

View File

@@ -6,7 +6,7 @@ Monkey
The Monkey module provides LVGL applications with a simple monkey test. Monkey
Testing is a technique where the user tests the application or system by providing
random inputs and checking the behavior or seeing whether the aplication or system
random inputs and checking the behavior or seeing whether the application or system
will crash. This module provides this service as simulated random input to stress
test an LVGL application.

View File

@@ -38,7 +38,7 @@ All Widget types share some basic attributes:
- Parent
- Styles
- Events it emits
- Flags like *Clickable*, *Scollable*, etc.
- Flags like *Clickable*, *Scrollable*, etc.
- Etc.
You can set/get these attributes with ``lv_obj_set_...`` and

View File

@@ -35,7 +35,7 @@ Configure UEFI driver
#define LV_UEFI_USE_MEMORY_SERVICES 1
- You can enable file system support for the file system from which the appliation got loaded (default letter 'E')
- You can enable file system support for the file system from which the application got loaded (default letter 'E')
.. code-block:: c

View File

@@ -140,7 +140,7 @@ Always call ``lv_wayland_timer_handler()`` in your timer loop instead of the reg
This allows the wayland client to work well on weston, resizing shared memory buffers during
a commit does not work well on weston.
Wrapping the call to ``lv_timer_hander()`` is a necessity to have more control over
Wrapping the call to ``lv_timer_handler()`` is a necessity to have more control over
when the LVGL flush callback is called.
Building the wayland driver

View File

@@ -443,7 +443,7 @@ Fetch (do_fetch)
Unpack (do_upack)
Unpack (do_unpack)
.. code-block:: bash
bitbake lvgl -c unpack

View File

@@ -77,7 +77,7 @@ provided implementations by setting :c:macro:`LV_USE_NEMA_HAL` to a value other
TSC Images
**********
TSC (ThinkSillicon Compression) images can be drawn by this renderer. The
TSC (ThinkSilicon Compression) images can be drawn by this renderer. The
TSC 4/6/6A/12/12A color formats are part of :cpp:type:`lv_color_format_t`.
All other renderers will ignore images with these color formats.
Define an image descriptor variable with the corresponding

View File

@@ -6,7 +6,7 @@ set(LV_BUILD_CONF_PATH "" CACHE PATH
"Use this to specify the location of and/or filename of lv_conf.h")
set(LV_BUILD_CONF_DIR "" CACHE PATH
"Can be used to specify the include dir containing lv_conf.h, to be used in conjuction with LV_CONF_INCLUDE_SIMPLE")
"Can be used to specify the include dir containing lv_conf.h, to be used in conjunction with LV_CONF_INCLUDE_SIMPLE")
option(LV_BUILD_USE_KCONFIG "Use Kconfig" OFF)
set(LV_BUILD_DEFCONFIG_PATH "" CACHE PATH

View File

@@ -78,7 +78,7 @@ void lv_example_scroll_1(void)
lv_label_set_text(label, "Bottom");
lv_obj_center(label);
/* When LV_OBJ_FLAG_SCROLL_ELASTIC is cleared, scrolling does not go past edge bounaries. */
/* When LV_OBJ_FLAG_SCROLL_ELASTIC is cleared, scrolling does not go past edge boundaries. */
/* lv_obj_clear_flag(panel, LV_OBJ_FLAG_SCROLL_ELASTIC); */
/* Call `scroll_update_cb` while panel is being scrolled. */

View File

@@ -1089,11 +1089,11 @@ class LVGLImage:
self.rgb565_dither and
cf in (ColorFormat.RGB565, ColorFormat.RGB565_SWAPPED, ColorFormat.RGB565A8, ColorFormat.ARGB8565)
):
treshold_id = ((y & 7) << 3) + (x & 7)
threshold_id = ((y & 7) << 3) + (x & 7)
r = min(r + red_thresh[treshold_id], 0xFF) & 0xF8
g = min(g + green_thresh[treshold_id], 0xFF) & 0xFC
b = min(b + blue_thresh[treshold_id], 0xFF) & 0xF8
r = min(r + red_thresh[threshold_id], 0xFF) & 0xF8
g = min(g + green_thresh[threshold_id], 0xFF) & 0xFC
b = min(b + blue_thresh[threshold_id], 0xFF) & 0xF8
rawdata += pack(r, g, b, a)

View File

@@ -94,7 +94,7 @@ class LVObject(Value):
return self.spec_attr.child_cnt if self.spec_attr else 0
@property
def childs(self):
def children(self):
if not self.spec_attr:
return
@@ -221,7 +221,7 @@ class DumpObj(gdb.Command):
return
# dump children
for child in obj.childs:
for child in obj.children:
self.dump_obj(child, depth + 1, limit=limit)
def invoke(self, args, from_tty):

View File

@@ -33,7 +33,7 @@ def get_args():
parser.add_argument("--debug", action="store_true", required=False, help="Show unhandled expressions")
parser.add_argument("--parentscope", action="store_true", required=False, help="Additionaly set the variables in the parent scope")
parser.add_argument("--parentscope", action="store_true", required=False, help="Additionally set the variables in the parent scope")
args = parser.parse_args()

View File

@@ -22,7 +22,7 @@ def get_args():
parser.add_argument("--input", help="Path to the input C header file", required=True)
parser.add_argument("--tmp_file", help="Path to save the preprocessed output", required=True)
parser.add_argument("--output", help="Path to save the cleaned output with removed indentation", required=True)
parser.add_argument("--workfolder", help="Path used to create a python environnement", required=True)
parser.add_argument("--workfolder", help="Path used to create a python environment", required=True)
parser.add_argument(
"--defs",

View File

@@ -73,7 +73,7 @@ struct _lv_draw_image_dsc_t {
*/
lv_blend_mode_t blend_mode : 4;
/**1: perform the transformation with anti-alaising */
/**1: perform the transformation with anti-aliasing */
uint16_t antialias : 1;
/**If the image is smaller than the `image_area` field of `lv_draw_image_dsc_t`

View File

@@ -67,7 +67,7 @@ const char * vglite_error_to_string(vg_lite_error_t error)
break;
}
return "VG_LITE_UKNOWN_ERROR";
return "VG_LITE_UNKNOWN_ERROR";
}
#if LV_USE_VGLITE_DRAW_ASYNC

View File

@@ -1318,7 +1318,7 @@ static void LV_ATTRIBUTE_FAST_MEM argb8888_premultiplied_image_blend(lv_draw_sw_
if(LV_RESULT_INVALID == LV_DRAW_SW_ARGB8888_PREMULTIPLIED_BLEND_NORMAL_TO_RGB565(dsc)) {
for(y = 0; y < h; y++) {
for(dest_x = 0, src_x = 0; dest_x < w; dest_x++, src_x += 4) {
/*For the trivial case use the premultipled image as it is.
/*For the trivial case use the premultiplied image as it is.
*For the other cases unpremultiply as another alpha also needs to be applied.*/
dest_buf_u16[dest_x] = lv_color_24_16_mix_premult(&src_buf_u8[src_x], dest_buf_u16[dest_x], src_buf_u8[src_x + 3]);
}

View File

@@ -971,7 +971,7 @@ static void LV_ATTRIBUTE_FAST_MEM argb8888_premultiplied_image_blend(lv_draw_sw_
if(LV_RESULT_INVALID == LV_DRAW_SW_ARGB8888_PREMULTIPLIED_BLEND_NORMAL_TO_RGB888(dsc, dest_px_size)) {
for(y = 0; y < h; y++) {
for(dest_x = 0, src_x = 0; src_x < w; dest_x += dest_px_size, src_x++) {
/*For the trivial case use the premultipled image as it is.
/*For the trivial case use the premultiplied image as it is.
*For the other cases unpremultiply as another alpha also needs to be applied.*/
lv_color_24_24_mix_premult((const uint8_t *)&src_buf_c32[src_x], &dest_buf[dest_x], src_buf_c32[src_x].alpha);
}

View File

@@ -581,7 +581,7 @@ static void transform_argb8888_premultiplied(const uint8_t * src, int32_t src_w,
lv_color32_t px_hor = src_c32[x_next];
lv_color32_t px_ver = *(const lv_color32_t *)((uint8_t *)src_c32 + y_next * src_stride);
/*Have the non-premultipled colors first, mix them as needed,
/*Have the non-premultiplied colors first, mix them as needed,
*and premultiply again*/
dest_c32[x] = unpremultiply(dest_c32[x]);
px_hor = unpremultiply(px_hor);

View File

@@ -164,7 +164,7 @@ static vg_lite_fill_t path_append_inner_rect(lv_vg_lite_path_t * path,
return VG_LITE_FILL_EVEN_ODD;
}
/* reset outter rect path */
/* reset outer rect path */
lv_vg_lite_path_reset(path, VG_LITE_FP32);
/* coordinate reference map: https://github.com/lvgl/lvgl/pull/6796 */

View File

@@ -160,7 +160,7 @@ const char * lv_vg_lite_error_string(vg_lite_error_t error)
default:
break;
}
return "UNKNOW_ERROR";
return "UNKNOWN_ERROR";
}
const char * lv_vg_lite_feature_string(vg_lite_feature_t feature)
@@ -215,7 +215,7 @@ const char * lv_vg_lite_feature_string(vg_lite_feature_t feature)
default:
break;
}
return "UNKNOW_FEATURE";
return "UNKNOWN_FEATURE";
}
const char * lv_vg_lite_buffer_format_string(vg_lite_buffer_format_t format)
@@ -273,7 +273,7 @@ const char * lv_vg_lite_buffer_format_string(vg_lite_buffer_format_t format)
default:
break;
}
return "UNKNOW_BUFFER_FORMAT";
return "UNKNOWN_BUFFER_FORMAT";
}
const char * lv_vg_lite_vlc_op_string(uint8_t vlc_op)
@@ -301,7 +301,7 @@ const char * lv_vg_lite_vlc_op_string(uint8_t vlc_op)
default:
break;
}
return "UNKNOW_VLC_OP";
return "UNKNOWN_VLC_OP";
}
static void path_data_print_cb(void * user_data, uint8_t op_code, const float * data, uint32_t len)

View File

@@ -42,7 +42,7 @@ extern "C" {
#define CLR_STN 0x2
#define CLR_TAG 0x1
/* SPI SIO/DIO/QIO tranfer widths */
/* SPI SIO/DIO/QIO transfer widths */
#define SPI_WIDTH_SIO 0x0
#define SPI_WIDTH_DIO 0x1
#define SPI_WIDTH_QIO 0x2
@@ -168,7 +168,7 @@ extern "C" {
/* Defines related to inbuilt font */
#define EVE_NUMCHAR_PERFONT (128L) /* number of font characters per bitmap handle */
#define EVE_FONT_TABLE_SIZE (148L) /* size of the font table - utilized for loopup by the graphics engine */
#define EVE_FONT_TABLE_SIZE (148L) /* size of the font table - utilized for lookup by the graphics engine */
#define EVE_FONT_TABLE_POINTER (0xFFFFCUL) /* pointer to the inbuilt font tables starting from bitmap handle 16 */

View File

@@ -27,7 +27,7 @@
**********************/
/**********************
* GOLBAL VARIABLES
* GLOBAL VARIABLES
**********************/
/**********************

View File

@@ -43,7 +43,7 @@ static void _display_ctx_free(lv_uefi_display_context_t * display_ctx);
static bool _display_interface_is_valid(const EFI_GRAPHICS_OUTPUT_PROTOCOL * interface);
/**********************
* GOLBAL VARIABLES
* GLOBAL VARIABLES
**********************/
/**********************

View File

@@ -26,7 +26,7 @@
**********************/
/**********************
* GOLBAL VARIABLES
* GLOBAL VARIABLES
**********************/
EFI_HANDLE gLvEfiImageHandle = NULL;
EFI_SYSTEM_TABLE * gLvEfiST = NULL;

View File

@@ -552,7 +552,7 @@ void lv_indev_gesture_recognizers_update(lv_indev_t * indev, lv_indev_touch_data
/* Update all recognizers to let them process input */
indev->recognizers[i].recog_fn(&indev->recognizers[i], &touches[0], touch_cnt);
/* Then reset the recognizers which did not repport RECONIZED or ENDED */
/* Then reset the recognizers which did not report RECOGNIZED or ENDED */
if(((lv_indev_gesture_type_t)i) != type) {
reset_recognizer(&indev->recognizers[i]);
}
@@ -610,7 +610,7 @@ void lv_indev_gesture_recognizers_set_data(lv_indev_t * indev, lv_indev_data_t *
********************/
/**
* Caluclate the direction from the starting center of a two fingers swipe gesture
* Calculate the direction from the starting center of a two fingers swipe gesture
* @param recognizer pointer to the recognizer handling the two fingers
* swipe gesture
* @return the direction of the swipe, from the starting center

View File

@@ -88,7 +88,7 @@ lv_lru_t * lv_lru_create(size_t cache_size, size_t average_length, lv_lru_free_c
cache->value_free = value_free ? value_free : lv_free;
cache->key_free = key_free ? key_free : lv_free;
// size the hash table to a guestimate of the number of slots required (assuming a perfect hash)
// size the hash table to a guesstimate of the number of slots required (assuming a perfect hash)
cache->items = lv_malloc_zeroed(sizeof(lv_lru_item_t *) * cache->hash_table_size);
if(!cache->items) {
LV_LOG_WARN("LRU Cache unable to create cache hash table");

View File

@@ -446,7 +446,7 @@ static bool lv_font_manager_check_resource(lv_font_manager_t * manager)
}
}
/* Check the recorded font resources created by font creater */
/* Check the recorded font resources created by font creator */
lv_ll_t * refer_ll = &manager->refer_ll;
uint32_t refer_ll_len = lv_ll_get_len(refer_ll);
if(refer_ll_len) {
@@ -533,7 +533,7 @@ static lv_font_t * lv_font_manager_create_font_wrapper(lv_font_manager_t * manag
return font;
}
static void lv_font_manager_delete_font_warpper(lv_font_manager_t * manager, lv_font_refer_node_t * refer_node)
static void lv_font_manager_delete_font_wrapper(lv_font_manager_t * manager, lv_font_refer_node_t * refer_node)
{
LV_ASSERT_NULL(manager);
LV_ASSERT_NULL(refer_node);
@@ -606,7 +606,7 @@ static bool lv_font_manager_drop_font(lv_font_manager_t * manager, const lv_font
}
/* if ref_cnt is about to be 0, free font resource */
lv_font_manager_delete_font_warpper(manager, refer_node);
lv_font_manager_delete_font_wrapper(manager, refer_node);
/* free refer_node */
lv_ll_remove(&manager->refer_ll, refer_node);

View File

@@ -2283,7 +2283,7 @@ static float vlc_get_arg(const void * data, vg_lite_format_t format)
return *((float *)data);
default:
LV_LOG_ERROR("UNKNOW_FORMAT: %d", format);
LV_LOG_ERROR("UNKNOWN_FORMAT: %d", format);
break;
}
@@ -2302,7 +2302,7 @@ static uint8_t vlc_format_len(vg_lite_format_t format)
case VG_LITE_FP32:
return 4;
default:
LV_LOG_ERROR("UNKNOW_FORMAT: %d", format);
LV_LOG_ERROR("UNKNOWN_FORMAT: %d", format);
LV_ASSERT(false);
break;
}
@@ -2332,7 +2332,7 @@ static uint8_t vlc_op_arg_len(uint8_t vlc_op)
VLC_OP_ARG_LEN(LCWARC, 5);
VLC_OP_ARG_LEN(LCWARC_REL, 5);
default:
LV_LOG_ERROR("UNKNOW_VLC_OP: 0x%x", vlc_op);
LV_LOG_ERROR("UNKNOWN_VLC_OP: 0x%x", vlc_op);
LV_ASSERT(false);
break;
}

View File

@@ -23,7 +23,7 @@
/**********************
* STATIC PROTOTYPES
**********************/
static lv_bar_orientation_t orentation_text_to_enum_value(const char * txt);
static lv_bar_orientation_t orientation_text_to_enum_value(const char * txt);
static lv_bar_mode_t mode_text_to_enum_value(const char * txt);
/**********************
@@ -69,7 +69,7 @@ void lv_xml_bar_apply(lv_xml_parser_state_t * state, const char ** attrs)
}
if(lv_streq("min_value", name)) lv_bar_set_min_value(item, lv_xml_atoi(value));
if(lv_streq("max_value", name)) lv_bar_set_max_value(item, lv_xml_atoi(value));
if(lv_streq("orientation", name)) lv_bar_set_orientation(item, orentation_text_to_enum_value(value));
if(lv_streq("orientation", name)) lv_bar_set_orientation(item, orientation_text_to_enum_value(value));
if(lv_streq("mode", name)) lv_bar_set_mode(item, mode_text_to_enum_value(value));
}
}
@@ -78,7 +78,7 @@ void lv_xml_bar_apply(lv_xml_parser_state_t * state, const char ** attrs)
* STATIC FUNCTIONS
**********************/
static lv_bar_orientation_t orentation_text_to_enum_value(const char * txt)
static lv_bar_orientation_t orientation_text_to_enum_value(const char * txt)
{
if(lv_streq("auto", txt)) return LV_BAR_ORIENTATION_AUTO;
if(lv_streq("horizontal", txt)) return LV_BAR_ORIENTATION_HORIZONTAL;

View File

@@ -23,7 +23,7 @@
/**********************
* STATIC PROTOTYPES
**********************/
static lv_slider_orientation_t orentation_text_to_enum_value(const char * txt);
static lv_slider_orientation_t orientation_text_to_enum_value(const char * txt);
static lv_slider_mode_t mode_text_to_enum_value(const char * txt);
/**********************
@@ -76,7 +76,7 @@ void lv_xml_slider_apply(lv_xml_parser_state_t * state, const char ** attrs)
LV_LOG_WARN("Subject \"%s\" doesn't exist in slider bind_value", value);
}
}
else if(lv_streq("orientation", name)) lv_slider_set_orientation(item, orentation_text_to_enum_value(value));
else if(lv_streq("orientation", name)) lv_slider_set_orientation(item, orientation_text_to_enum_value(value));
else if(lv_streq("mode", name)) lv_slider_set_mode(item, mode_text_to_enum_value(value));
else if(lv_streq("min_value", name)) lv_slider_set_min_value(item, lv_xml_atoi(value));
else if(lv_streq("max_value", name)) lv_slider_set_max_value(item, lv_xml_atoi(value));
@@ -87,7 +87,7 @@ void lv_xml_slider_apply(lv_xml_parser_state_t * state, const char ** attrs)
* STATIC FUNCTIONS
**********************/
static lv_slider_orientation_t orentation_text_to_enum_value(const char * txt)
static lv_slider_orientation_t orientation_text_to_enum_value(const char * txt)
{
if(lv_streq("auto", txt)) return LV_SLIDER_ORIENTATION_AUTO;
if(lv_streq("horizontal", txt)) return LV_SLIDER_ORIENTATION_HORIZONTAL;

View File

@@ -75,7 +75,7 @@ void * lv_realloc_core(void * p, size_t new_size)
p_address -= sizeof(mem_header_t);
p_header = (mem_header_t *) p_address;
// UEFI supportes no realloc, if the size grows a new memory block has to be allocated
// UEFI supports no realloc, if the size grows a new memory block has to be allocated
if(p_header->size > new_size) return p;
p_new = lv_malloc_core(new_size);

View File

@@ -312,7 +312,7 @@ int32_t lv_scale_get_major_tick_every(lv_obj_t * obj);
/**
* Get angular location of low end of Scale.
* @param obj pointer to Scale Widget
* @return Scale low end anglular location
* @return Scale low end angular location
*/
int32_t lv_scale_get_rotation(lv_obj_t * obj);

View File

@@ -17,7 +17,7 @@ void tearDown(void)
/**
* Tests that green/blue checker pattern of various row and column sizes
* completely covers underyling screen, no red background visible.
* completely covers underlying screen, no red background visible.
*/
void test_grid_fr(void)
{

View File

@@ -87,25 +87,25 @@ void test_recolor_1(void)
lv_obj_set_style_recolor(img3, lv_color_hex(0xff0000), 0);
lv_obj_set_style_recolor_opa(img3, LV_OPA_50, 0);
lv_obj_t * lable = lv_label_create(lv_screen_active());
lv_label_set_text(lable, "Hello World Hello World");
lv_obj_t * label = lv_label_create(lv_screen_active());
lv_label_set_text(label, "Hello World Hello World");
lv_obj_t * lable1 = lv_label_create(lv_screen_active());
lv_label_set_text(lable1, "Hello World Hello World");
lv_obj_set_style_text_color(lable1, lv_color_hex(0xff0000), 0);
lv_obj_set_style_text_opa(lable1, LV_OPA_50, 0);
lv_obj_t * label1 = lv_label_create(lv_screen_active());
lv_label_set_text(label1, "Hello World Hello World");
lv_obj_set_style_text_color(label1, lv_color_hex(0xff0000), 0);
lv_obj_set_style_text_opa(label1, LV_OPA_50, 0);
lv_obj_t * lable2 = lv_label_create(lv_screen_active());
lv_label_set_text(lable2, "Hello World Hello World");
lv_obj_set_style_recolor(lable2, lv_color_hex(0xff0000), 0);
lv_obj_set_style_recolor_opa(lable2, LV_OPA_50, 0);
lv_obj_t * label2 = lv_label_create(lv_screen_active());
lv_label_set_text(label2, "Hello World Hello World");
lv_obj_set_style_recolor(label2, lv_color_hex(0xff0000), 0);
lv_obj_set_style_recolor_opa(label2, LV_OPA_50, 0);
lv_obj_t * lable3 = lv_label_create(lv_screen_active());
lv_label_set_text(lable3, "Hello World Hello World");
lv_obj_set_style_recolor(lable3, lv_color_hex(0xff0000), 0);
lv_obj_set_style_recolor_opa(lable3, LV_OPA_50, 0);
lv_obj_set_style_text_color(lable3, lv_color_hex(0xff00), 0);
lv_obj_set_style_text_opa(lable3, LV_OPA_50, 0);
lv_obj_t * label3 = lv_label_create(lv_screen_active());
lv_label_set_text(label3, "Hello World Hello World");
lv_obj_set_style_recolor(label3, lv_color_hex(0xff0000), 0);
lv_obj_set_style_recolor_opa(label3, LV_OPA_50, 0);
lv_obj_set_style_text_color(label3, lv_color_hex(0xff00), 0);
lv_obj_set_style_text_opa(label3, LV_OPA_50, 0);
TEST_ASSERT_EQUAL_SCREENSHOT("recolor_1.png");
}

View File

@@ -172,7 +172,7 @@ void testSvgElement(void)
lv_svg_node_delete(svg_node_ar);
const char * svg_ar3 = \
"<svg preserveAspectRatio=\"xMaxYMin unknow\"></svg>";
"<svg preserveAspectRatio=\"xMaxYMin unknown\"></svg>";
svg_node_ar = lv_svg_load_data(svg_ar3, lv_strlen(svg_ar3));
TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 6);
lv_svg_node_delete(svg_node_ar);

View File

@@ -223,7 +223,7 @@ void test_obj_get_by_name(void)
lv_obj_t * hello_label = lv_label_create(btn);
lv_label_set_text(hello_label, "Hello");
lv_obj_set_name(hello_label, "my_label"); /*Same name as ofr the other label*/
lv_obj_set_name(hello_label, "my_label"); /*Same name as for the other label*/
/*Test auto indexing*/

View File

@@ -234,7 +234,7 @@ void test_table_rendering(void)
* which can be solved by expanding the redrawing area.
* lv_area_increase(&area_tmp, 5, 5);
*
* This accomodates for this specific calculation.
* This accommodates for this specific calculation.
*/
TEST_ASSERT_EQUAL_INT32(lv_area_get_width(&g_inv_area), merged_col_width + 10);
#else

View File

@@ -1116,7 +1116,7 @@ void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
is_trait = !UNITY_IS_INF(actual) && !UNITY_IS_NAN(actual);
break;
case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
case UNITY_FLOAT_INVALID_TRAIT: /* Suppress warning */
default: /* including UNITY_FLOAT_INVALID_TRAIT */
trait_index = 0;
trait_names[0] = UnityStrInvalidFloatTrait;
@@ -1343,7 +1343,7 @@ void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,
is_trait = !UNITY_IS_INF(actual) && !UNITY_IS_NAN(actual);
break;
case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
case UNITY_FLOAT_INVALID_TRAIT: /* Suppress warning */
default: /* including UNITY_FLOAT_INVALID_TRAIT */
trait_index = 0;
trait_names[0] = UnityStrInvalidFloatTrait;