1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(vg_lite_tvg): fix int32 type missmatch (#7022)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX 2024-10-10 19:55:42 +08:00 committed by GitHub
parent 89ec040eb6
commit 609e48fe9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1890,11 +1890,11 @@ Empty_sequence_handler:
return VG_LITE_NOT_SUPPORT;
}
vg_lite_error_t vg_lite_set_scissor(int32_t x, int32_t y, int32_t right, int32_t bottom)
vg_lite_error_t vg_lite_set_scissor(vg_lite_int32_t x, vg_lite_int32_t y, vg_lite_int32_t right, vg_lite_int32_t bottom)
{
auto ctx = vg_lite_ctx::get_instance();
int32_t width = right - x;
int32_t height = bottom - y;
vg_lite_int32_t width = right - x;
vg_lite_int32_t height = bottom - y;
if(width <= 0 || height <= 0) {
return VG_LITE_INVALID_ARGUMENT;