mirror of
https://github.com/lvgl/lvgl.git
synced 2026-03-23 14:03:13 +08:00
fix(uefi): correct vertical resolution check in display flush callback (#9872)
This commit is contained in:
@@ -228,7 +228,7 @@ static void _display_flush_cb(lv_display_t * display, const lv_area_t * area, ui
|
||||
goto error;
|
||||
}
|
||||
|
||||
if((uint32_t)(area->y1 + h) > display_ctx->gop_protocol->Mode->Info->HorizontalResolution) {
|
||||
if((uint32_t)(area->y1 + h) > display_ctx->gop_protocol->Mode->Info->VerticalResolution) {
|
||||
LV_LOG_ERROR("[lv_uefi] Invalid lv_display_flush_cb call (invalid height).");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user