BigW Consortium Gitlab

Commit 4fce2f39 by Gabor Kiss-Vamosi

LV_INDEV_POINT_MARKER bugfix

parent ce616099
......@@ -27,8 +27,8 @@
*=====================*/
/* Horizontal and vertical resolution of the library.*/
#define LV_HOR_RES 800
#define LV_VER_RES 480
#define LV_HOR_RES 320
#define LV_VER_RES 240
#define LV_DPI 100
/* Buffered rendering: >= LV_DOWNSCALE * lv_disp_hor_res() or 0 to disable buffering*/
......@@ -66,7 +66,7 @@
#define LV_INDEV_LONG_PRESS_REP_TIME 100 /*Repeated trigger period in long press [ms] */
/*Color settings*/
#define LV_COLOR_DEPTH 24
#define LV_COLOR_DEPTH 16
#define LV_COLOR_TRANSP LV_COLOR_LIME /*Images pixels with this color will not be drawn (chroma keying)*/
/*Text settings*/
......
......@@ -314,7 +314,7 @@ static void indev_proc_point(lv_indev_proc_t * indev)
{
if(indev->state == LV_INDEV_STATE_PR){
#if LV_INDEV_POINT_MARKER != 0
area_t area;
lv_area_t area;
area.x1 = indev->act_point.x - (LV_INDEV_POINT_MARKER >> 1);
area.y1 = indev->act_point.y - (LV_INDEV_POINT_MARKER >> 1);
area.x2 = indev->act_point.x + ((LV_INDEV_POINT_MARKER >> 1) | 0x1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment