diff options
Diffstat (limited to 'src/dev/nuttx/lv_nuttx_touchscreen.c')
-rw-r--r-- | src/dev/nuttx/lv_nuttx_touchscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/nuttx/lv_nuttx_touchscreen.c b/src/dev/nuttx/lv_nuttx_touchscreen.c index 23d4c0d54..91e33da50 100644 --- a/src/dev/nuttx/lv_nuttx_touchscreen.c +++ b/src/dev/nuttx/lv_nuttx_touchscreen.c @@ -100,8 +100,8 @@ static void touchscreen_read(lv_indev_t * drv, lv_indev_data_t * data) if(touch_flags & TOUCH_DOWN || touch_flags & TOUCH_MOVE) { const lv_display_t * disp_drv = drv->disp; - lv_coord_t ver_max = disp_drv->ver_res - 1; - lv_coord_t hor_max = disp_drv->hor_res - 1; + int32_t ver_max = disp_drv->ver_res - 1; + int32_t hor_max = disp_drv->hor_res - 1; data->point.x = LV_CLAMP(0, sample.point[0].x, hor_max); data->point.y = LV_CLAMP(0, sample.point[0].y, ver_max); |