diff --git a/demos/gltf/lv_demo_gltf.c b/demos/gltf/lv_demo_gltf.c index 079325511a..7a4cc54c66 100644 --- a/demos/gltf/lv_demo_gltf.c +++ b/demos/gltf/lv_demo_gltf.c @@ -324,7 +324,7 @@ static void create_background_panel(lv_obj_t * panel) lv_obj_t * background_dropdown = add_dropdown_to_row(bg_row); style_dropdown(background_dropdown); - lv_dropdown_set_options(background_dropdown, "Solid Color\nEnvironnement"); + lv_dropdown_set_options(background_dropdown, "Solid Color\nEnvironment"); lv_dropdown_bind_value(background_dropdown, &background_subject); lv_obj_t * env_brightness_title = add_title_to_row(bg_row, ""); diff --git a/docs/src/_static/js/custom.js b/docs/src/_static/js/custom.js index 13f1d8fb3d..9ac60b2064 100644 --- a/docs/src/_static/js/custom.js +++ b/docs/src/_static/js/custom.js @@ -296,13 +296,13 @@ document.addEventListener("DOMContentLoaded", (event) => { const pgParent = page.parentElement; pgParent.insertBefore(newDiv, page); - /* Finally, we need to tell the page element that its `min-hight` - * is 100% minus the hight of all the banners, including the one + /* Finally, we need to tell the page element that its `min-height` + * is 100% minus the height of all the banners, including the one * supplied by `conf.py` in `conf.html_theme_options.announcement` * if one is present === var(--header-height). * * This extends short pages by just enough to place [PREV] and [NEXT] - * buttoms and footer at bottom of page without scrolling. + * buttons and footer at bottom of page without scrolling. * * Note: this overrides the `min-height` property set for this * element in `furo.css`, which is: calc(100% - var(--header-height)). diff --git a/docs/src/integration/chip_vendors/espressif/add_lvgl_to_esp32_idf_project.rst b/docs/src/integration/chip_vendors/espressif/add_lvgl_to_esp32_idf_project.rst index e5a56be41c..f8abf69a0a 100644 --- a/docs/src/integration/chip_vendors/espressif/add_lvgl_to_esp32_idf_project.rst +++ b/docs/src/integration/chip_vendors/espressif/add_lvgl_to_esp32_idf_project.rst @@ -69,11 +69,11 @@ Configuration To configure LVGL, launch the configuration menu with ``idf.py menuconfig`` in your project root directory. Navigate to ``Component config`` and then ``LVGL configuration``. -Addtionally the user can make the current LVGL settings permanent, or default, for the current +Additionally the user can make the current LVGL settings permanent, or default, for the current project, all that is needed is to create a file on the project root called `sdkconfig.defaults` and move the `CONFIG_LV_` symbols to that file. -It is possible to create a per-chip default confiuration files by creating A +It is possible to create a per-chip default configuration files by creating a configuration default files which starts to the chip variant, for example `sdkconfig.esp32p4` will only apply the default configuration for an ESP32-P4 IDF project. diff --git a/docs/src/integration/chip_vendors/espressif/hardware_accelerator_dma2d.rst b/docs/src/integration/chip_vendors/espressif/hardware_accelerator_dma2d.rst index 9a3c3ea33d..0988ee6b2a 100644 --- a/docs/src/integration/chip_vendors/espressif/hardware_accelerator_dma2d.rst +++ b/docs/src/integration/chip_vendors/espressif/hardware_accelerator_dma2d.rst @@ -44,7 +44,7 @@ setting the DMA2D flag to true: /* Gets the default configuration for the MIPI display controller */ esp_lcd_dpi_panel_config_t dpi_config = EK79007_1024_600_PANEL_60HZ_CONFIG(LCD_COLOR_PIXEL_FORMAT_RGB888); - /* Explictly set the DMA2D to assist the buffer transfer */ + /* Explicitly set the DMA2D to assist the buffer transfer */ dpi_config.flags.use_dma2d = true; ek79007_vendor_config_t vendor_config = { diff --git a/docs/src/integration/chip_vendors/espressif/hardware_accelerator_ppa.rst b/docs/src/integration/chip_vendors/espressif/hardware_accelerator_ppa.rst index 7d5219f981..26a7f41950 100644 --- a/docs/src/integration/chip_vendors/espressif/hardware_accelerator_ppa.rst +++ b/docs/src/integration/chip_vendors/espressif/hardware_accelerator_ppa.rst @@ -36,7 +36,7 @@ Save the file and then rebuild the project, this will be sufficient to add the P no further steps are required from the user code perspective. Is it suggested to use PPA with the double buffer support of the ESP LVGL Port since it will not offer performance increase when using it in partial mode due -to DMA2D memory bandwith. To have te best performance and experience you can use the following snippet code to start the LVGL subsystem +to DMA2D memory bandwidth. To have the best performance and experience you can use the following snippet code to start the LVGL subsystem for ESP-IDF: .. code:: c diff --git a/docs/src/integration/embedded_linux/drivers/drm.rst b/docs/src/integration/embedded_linux/drivers/drm.rst index 0b81eeed61..e723fef128 100644 --- a/docs/src/integration/embedded_linux/drivers/drm.rst +++ b/docs/src/integration/embedded_linux/drivers/drm.rst @@ -95,7 +95,7 @@ Notes - DRM requires proper modesetting. By default, LVGL will select a preferred display mode. -In order to avoid hard codding the device card path, you can ask LVGL to find a connected one for you using :cpp:func:`lv_linux_drm_find_device_path`. +In order to avoid hard coding the device card path, you can ask LVGL to find a connected one for you using :cpp:func:`lv_linux_drm_find_device_path`. It will return the first connected card it can find. .. code-block:: c diff --git a/docs/src/integration/pc/uefi.rst b/docs/src/integration/pc/uefi.rst index ae7c52ee4f..2a51968937 100644 --- a/docs/src/integration/pc/uefi.rst +++ b/docs/src/integration/pc/uefi.rst @@ -32,7 +32,7 @@ Configuration #define LV_USE_UEFI 1 -- Enable the memory core functions, which are wrappers around ``AllocatePool`` and ``FreePool`` (using memory of type *EfiBootServicesData*) if you do not wan't to use your own implementations +- Enable the memory core functions, which are wrappers around ``AllocatePool`` and ``FreePool`` (using memory of type *EfiBootServicesData*) if you do not want to use your own implementations .. code-block:: c diff --git a/examples/porting/lv_port_indev_template.c b/examples/porting/lv_port_indev_template.c index e6f66cad40..349bdb2c19 100644 --- a/examples/porting/lv_port_indev_template.c +++ b/examples/porting/lv_port_indev_template.c @@ -69,7 +69,7 @@ static lv_indev_state_t encoder_state; void lv_port_indev_init(void) { /** - * Here you will find example implementation of input devices supported by LittelvGL: + * Here you will find example implementation of input devices supported by LVGL: * - Touchpad * - Mouse (with cursor support) * - Keypad (supports GUI usage only with key) diff --git a/scripts/perf/filter_docker_benchmark_logs.py b/scripts/perf/filter_docker_benchmark_logs.py index 85bf15bbf2..278b99f7c4 100644 --- a/scripts/perf/filter_docker_benchmark_logs.py +++ b/scripts/perf/filter_docker_benchmark_logs.py @@ -35,7 +35,7 @@ The input looks something like: {"log":"LVGL Benchmark Over\r\n","stream":"stdout","time":"2025-03-14T20:33:57.933458479Z"} ```` -Outpus a json file with the format: +Outputs a json file with the format: ```json [ { diff --git a/src/draw/sw/blend/lv_draw_sw_blend_to_rgb565_swapped.c b/src/draw/sw/blend/lv_draw_sw_blend_to_rgb565_swapped.c index bad14ba91b..40e7cc2e7f 100644 --- a/src/draw/sw/blend/lv_draw_sw_blend_to_rgb565_swapped.c +++ b/src/draw/sw/blend/lv_draw_sw_blend_to_rgb565_swapped.c @@ -1371,7 +1371,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_SWAPPED(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_swap_16(lv_color_24_16_mix_premult(&src_buf_u8[src_x], lv_color_swap_16(dest_buf_u16[dest_x]), src_buf_u8[src_x + 3])); diff --git a/src/drivers/display/drm/lv_linux_drm.h b/src/drivers/display/drm/lv_linux_drm.h index 5afede0497..fee15c9773 100644 --- a/src/drivers/display/drm/lv_linux_drm.h +++ b/src/drivers/display/drm/lv_linux_drm.h @@ -64,7 +64,7 @@ lv_display_t * lv_linux_drm_create(void); * @param disp Pointer to the display object created with lv_linux_drm_create() * @param file Path to the DRM device file (e.g., "/dev/dri/card0") * @param connector_id ID of the DRM connector to use, or -1 to auto-select the first available - * @return LV_RESULT_OK if the initialization succeeeded or LV_RESULT_INVALID if it failed + * @return LV_RESULT_OK if the initialization succeeded or LV_RESULT_INVALID if it failed */ lv_result_t lv_linux_drm_set_file(lv_display_t * disp, const char * file, int64_t connector_id); diff --git a/src/drivers/display/nxp_elcdif/lv_nxp_elcdif.h b/src/drivers/display/nxp_elcdif/lv_nxp_elcdif.h index 29625e9e3a..748edd9913 100644 --- a/src/drivers/display/nxp_elcdif/lv_nxp_elcdif.h +++ b/src/drivers/display/nxp_elcdif/lv_nxp_elcdif.h @@ -40,7 +40,7 @@ extern "C" { * @param frame_buffer1 pointer the first frame buffers * @param frame_buffer2 pointer the second frame buffers * @param buf_size size of a buffer in bytes (must be at least as large as the screen) - * @return a display object initialized and registerd on the LVGL runtime + * @return a display object initialized and registered on the LVGL runtime */ lv_display_t * lv_nxp_display_elcdif_create_direct(LCDIF_Type * base, const elcdif_rgb_mode_config_t * config, void * frame_buffer1, @@ -55,7 +55,7 @@ lv_display_t * lv_nxp_display_elcdif_create_direct(LCDIF_Type * base, const elcd * @param frame_buffer1 pointer the first frame buffers * @param frame_buffer2 pointer the second frame buffers * @param buf_size size of a buffer in bytes -* @return a display object initialized and registerd on the LVGL runtime +* @return a display object initialized and registered on the LVGL runtime */ lv_display_t * lv_nxp_display_elcdif_create_partial(LCDIF_Type * base, const elcdif_rgb_mode_config_t * config, void * frame_buffer1, @@ -67,8 +67,8 @@ lv_display_t * lv_nxp_display_elcdif_create_partial(LCDIF_Type * base, const elc * to the LCD panel * @param disp The display instance that contains the eLCD related data * - * @note: the parameter disp is tipycally the return value after - * `lv_nxp_display_elcdif_create_direct` has been sucessfully executed + * @note: the parameter disp is typically the return value after + * `lv_nxp_display_elcdif_create_direct` has been successfully executed */ void lv_nxp_display_elcdif_event_handler(const lv_display_t * disp); /********************** diff --git a/src/drivers/draw/eve/lv_draw_eve_display_defines.h b/src/drivers/draw/eve/lv_draw_eve_display_defines.h index 1d2efff155..2d1ae742d1 100644 --- a/src/drivers/draw/eve/lv_draw_eve_display_defines.h +++ b/src/drivers/draw/eve/lv_draw_eve_display_defines.h @@ -35,7 +35,7 @@ extern "C" { #define LV_EVE_EVE_CMDFIFO_SIZE ((uint32_t) 4U*1024UL) #define LV_EVE_EVE_RAM_DL_SIZE ((uint32_t) 8U*1024UL) -/* diplay list list commands, most need OR's arguments */ +/* display list commands, most need OR's arguments */ #define LV_EVE_DL_DISPLAY ((uint32_t) 0x00000000UL) #define LV_EVE_DL_BITMAP_SOURCE ((uint32_t) 0x01000000UL) #define LV_EVE_DL_CLEAR_COLOR_RGB ((uint32_t) 0x02000000UL) @@ -939,7 +939,7 @@ static inline uint32_t LV_EVE_TAG_MASK(uint8_t mask) //#define LV_EVE_VERTEX2F(x,y) ((LV_EVE_DL_VERTEX2F) | ((((uint32_t) (x)) & 0x7FFFUL) << 15U) | (((uint32_t) (y)) & 0x7FFFUL)) /** - * @brief Set coordinates for graphics primitves. + * @brief Set coordinates for graphics primitives. * @return a 32 bit word for use with EVE_cmd_dl() */ static inline uint32_t LV_EVE_VERTEX2F(int16_t xc0, int16_t yc0) @@ -951,7 +951,7 @@ static inline uint32_t LV_EVE_VERTEX2F(int16_t xc0, int16_t yc0) //#define LV_EVE_VERTEX2II(x,y,handle,cell) ((LV_EVE_DL_VERTEX2II) | (((x) & 0x1FFUL) << 21U) | (((y) & 0x1FFUL) << 12U) | (((handle) & 0x1FUL) << 7U) | ((cell) & 0x7FUL)) /** - * @brief Set coordinates, bitmap-handle and cell-number for graphics primitves. + * @brief Set coordinates, bitmap-handle and cell-number for graphics primitives. * @return a 32 bit word for use with EVE_cmd_dl() */ static inline uint32_t LV_EVE_VERTEX2II(uint16_t xc0, uint16_t yc0, uint8_t handle, uint8_t cell) diff --git a/src/drivers/opengles/lv_opengles_egl.c b/src/drivers/opengles/lv_opengles_egl.c index 31c3355baf..2ae056125a 100644 --- a/src/drivers/opengles/lv_opengles_egl.c +++ b/src/drivers/opengles/lv_opengles_egl.c @@ -519,7 +519,7 @@ static void * create_native_window(lv_opengles_egl_t * ctx) void * native_window = ctx->interface.create_window_cb(ctx->interface.driver_data, &properties); if(!native_window) { - LV_LOG_ERROR("Faield to create window"); + LV_LOG_ERROR("Failed to create window"); lv_free(mods); return NULL; } diff --git a/src/drivers/wayland/lv_wayland_backend_g2d.c b/src/drivers/wayland/lv_wayland_backend_g2d.c index 41f1e54434..b11f402047 100644 --- a/src/drivers/wayland/lv_wayland_backend_g2d.c +++ b/src/drivers/wayland/lv_wayland_backend_g2d.c @@ -382,7 +382,7 @@ static void buffer_release(void * data, struct wl_buffer * buffer) static void create_succeeded(void * data, struct zwp_linux_buffer_params_v1 * params, struct wl_buffer * new_buffer) { - LV_LOG_TRACE("Buffer created successfuly"); + LV_LOG_TRACE("Buffer created successfully"); lv_wl_buffer_t * buffer = data; buffer->wl_buffer = new_buffer; diff --git a/src/indev/lv_indev_gesture.c b/src/indev/lv_indev_gesture.c index 10e8140358..3882b33a7b 100644 --- a/src/indev/lv_indev_gesture.c +++ b/src/indev/lv_indev_gesture.c @@ -541,7 +541,7 @@ void lv_indev_gesture_recognizers_update(lv_indev_t * indev, lv_indev_touch_data lv_indev_gesture_type_t type; /* First check if a recognizer state is RECOGNIZED or ENDED. * - * In that case, call its recongizer function and reset the other*/ + * In that case, call its recognizer function and reset the other */ type = get_first_recognized_or_ended_gesture(indev); if(type != LV_INDEV_GESTURE_NONE) { diff --git a/src/indev/lv_indev_gesture.h b/src/indev/lv_indev_gesture.h index 111d7b2b4e..0129264ca6 100644 --- a/src/indev/lv_indev_gesture.h +++ b/src/indev/lv_indev_gesture.h @@ -77,7 +77,7 @@ struct lv_indev_gesture_recognizer { lv_indev_gesture_configuration_t * config; /* The recognizer config, containing the gestures thresholds */ - lv_recognizer_func_t recog_fn; /* The recognizer function that this recongnizer must execute */ + lv_recognizer_func_t recog_fn; /* The recognizer function that this recognizer must execute */ }; /********************** @@ -222,7 +222,7 @@ bool lv_indev_recognizer_is_active(lv_indev_gesture_recognizer_t * recognizer); * Update the recognizers. It execute the recognizers functions and checks for * LV_GESTURE_STATE_RECOGNIZED or LV_GESTURE_STATE_ENDED gestures. * To be called in the indev read_cb. - * @param indev pointer to the indev containing from which the reconizer need an update + * @param indev pointer to the indev containing from which the recognizer need an update * @param touches indev touch data array, containing the last touch data from indev * since the last recognizers update * @param touch_cnt number of indev touch data in touches diff --git a/src/libs/gltf/gltf_environment/lv_gltf_ibl_sampler.c b/src/libs/gltf/gltf_environment/lv_gltf_ibl_sampler.c index 2fd9321935..70e3fb2d86 100644 --- a/src/libs/gltf/gltf_environment/lv_gltf_ibl_sampler.c +++ b/src/libs/gltf/gltf_environment/lv_gltf_ibl_sampler.c @@ -410,7 +410,7 @@ static void ibl_panorama_to_cubemap(lv_gltf_ibl_sampler_t * sampler) GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER); while(status != GL_FRAMEBUFFER_COMPLETE) { status = glCheckFramebufferStatus(GL_FRAMEBUFFER); - LV_LOG_ERROR("Environnement render error not complete. Expected %d. Got %d", GL_FRAMEBUFFER_COMPLETE, + LV_LOG_ERROR("Environment render error not complete. Expected %d. Got %d", GL_FRAMEBUFFER_COMPLETE, status); } GL_CALL(glViewport(0, 0, sampler->cube_map_resolution, sampler->cube_map_resolution)); @@ -617,7 +617,7 @@ static void init_fullscreen_quad(lv_gltf_ibl_sampler_t * sampler) 1.0f, 1.0f }; - /* Texture coords go from 0 0 (left botton) to 1 1 (right top)*/ + /* Texture coords go from 0 0 (left bottom) to 1 1 (right top)*/ GLfloat texCoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, diff --git a/src/libs/gltf/gltf_view/assets/lv_gltf_view_shader.c b/src/libs/gltf/gltf_view/assets/lv_gltf_view_shader.c index d5d7ef86e0..bd29d947df 100644 --- a/src/libs/gltf/gltf_view/assets/lv_gltf_view_shader.c +++ b/src/libs/gltf/gltf_view/assets/lv_gltf_view_shader.c @@ -136,7 +136,7 @@ static const lv_opengl_shader_t src_includes[] = { #ifdef TONEMAP_ACES_HILL_EXPOSURE_BOOST // boost exposure as discussed in https://github.com/mrdoob/three.js/pull/19621 // this factor is based on the exposure correction of Krzysztof Narkowicz in his - // implemetation of ACES tone mapping + // implementation of ACES tone mapping color /= 0.6; color = toneMapACES_Hill(color); #endif @@ -3252,7 +3252,7 @@ static const lv_opengl_shader_t env_src_includes[] = { // To make the LUT independant from the material's F0, which is part of the Fresnel term // when substituted by Schlick's approximation, we factor it out of the integral, // yielding to the form: F0 * I1 + I2 - // I1 and I2 are slighlty different in the Fresnel term, but both only depend on + // I1 and I2 are slightly different in the Fresnel term, but both only depend on // NoL and roughness, so they are both numerically integrated and written into two channels. float A = 0.0; float B = 0.0; diff --git a/src/libs/gltf/gltf_view/lv_gltf.h b/src/libs/gltf/gltf_view/lv_gltf.h index c27df476cd..8a6ec1e465 100644 --- a/src/libs/gltf/gltf_view/lv_gltf.h +++ b/src/libs/gltf/gltf_view/lv_gltf.h @@ -39,7 +39,7 @@ typedef enum { typedef enum { LV_GLTF_BG_MODE_SOLID = 0, /** Solid background. Use `lv_obj_set_style_bg_color` to set the background color*/ - LV_GLTF_BG_MODE_ENVIRONMENT = 1, /** Environnement background*/ + LV_GLTF_BG_MODE_ENVIRONMENT = 1, /** Environment background*/ } lv_gltf_bg_mode_t; @@ -400,7 +400,7 @@ lv_3dplane_t lv_gltf_get_current_view_plane(lv_obj_t * obj, float distance); /** * Calculates a ray originating from the camera and passing through the specified mouse position on the screen. * @param obj pointer to a GLTF viewer object - * @param screen_pos screen co-ordinate, in pixels + * @param screen_pos screen coordinate, in pixels * @return mouse point ray */ lv_3dray_t lv_gltf_get_ray_from_2d_coordinate(lv_obj_t * obj, const lv_point_t * screen_pos); diff --git a/src/libs/vg_lite_driver/lv_vg_lite_hal/lv_vg_lite_hal.c b/src/libs/vg_lite_driver/lv_vg_lite_hal/lv_vg_lite_hal.c index c9e81cdc5f..657b05ea34 100644 --- a/src/libs/vg_lite_driver/lv_vg_lite_hal/lv_vg_lite_hal.c +++ b/src/libs/vg_lite_driver/lv_vg_lite_hal/lv_vg_lite_hal.c @@ -193,7 +193,7 @@ static int split_node(heap_node_t * node, unsigned long size) if(split == NULL) return -1; - /* Fill in the data of this node of the remaning size. */ + /* Fill in the data of this node of the remaining size. */ split->offset = node->offset + size; split->size = node->size - size; split->status = 0; diff --git a/src/widgets/gif/lv_gif.c b/src/widgets/gif/lv_gif.c index be6ec1867d..33db1f0698 100644 --- a/src/widgets/gif/lv_gif.c +++ b/src/widgets/gif/lv_gif.c @@ -24,7 +24,7 @@ * TYPEDEFS **********************/ -/* the type of the AnimatedGIF pallete type passed to `GIF_begin` */ +/* the type of the AnimatedGIF palette type passed to `GIF_begin` */ typedef unsigned char animatedgif_color_format_t; typedef struct { diff --git a/tests/README.md b/tests/README.md index 4f003d7448..d65f62810f 100644 --- a/tests/README.md +++ b/tests/README.md @@ -125,7 +125,7 @@ You can also run this script by passing a performance test config to the `main.p ## Emulated benchmarks In addition to unit and performance tests, LVGL automatically runs the `lv_demo_benchmark` inside the same ARM emulated -environment mentionned in the previous section through CI to prevent unintentional slowdowns. +environment mentioned in the previous section through CI to prevent unintentional slowdowns. ### Requirements diff --git a/tests/perf.py b/tests/perf.py index 2ceb9b3455..93ea26aba9 100755 --- a/tests/perf.py +++ b/tests/perf.py @@ -26,10 +26,10 @@ lvgl_test_dir = os.path.dirname(os.path.realpath(__file__)) def main() -> bool: - epilog = """This program runs LVGL perfomance tests - In order to provide timing consitency between host computers, - these runs are run in an ARM emulated environnement inside QEMU. - For the runtime environnement, SO3 is used which is a lightweight, ARM-based + epilog = """This program runs LVGL performance tests + In order to provide timing consistency between host computers, + these runs are run in an ARM emulated environment inside QEMU. + For the runtime environment, SO3 is used which is a lightweight, ARM-based operating system. Right now, this script requires a host linux computer as we depend on `losetup` which is used to set up and control loop devices. diff --git a/tests/src/test_cases/libs/test_bin_decoder.c b/tests/src/test_cases/libs/test_bin_decoder.c index c5063caa2f..67f23baa05 100644 --- a/tests/src/test_cases/libs/test_bin_decoder.c +++ b/tests/src/test_cases/libs/test_bin_decoder.c @@ -227,7 +227,7 @@ void test_bin_decoder_decoder_dsc_error_handling(void) { lv_image_decoder_dsc_t * decoder_dsc = get_image_decoder_dsc(); - /* Test info invalid file exension */ + /* Test info invalid file extension */ decoder_dsc->src = "test_image.png"; lv_result_t result = lv_bin_decoder_info(NULL, decoder_dsc, NULL); TEST_ASSERT_EQUAL(LV_RESULT_INVALID, result);