Fix inverted vertical

This commit is contained in:
suchmememanyskill
2024-03-13 20:20:57 +01:00
parent be3b2ddb24
commit a7bde99442

View File

@@ -68,8 +68,14 @@ void screen_lv_touchRead(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
}
else
{
#ifdef CYD_SCREEN_VERTICAL
// I don't even want to know why this works...
magicY = TOUCH_HEIGHT - tp.points[i].x;
magicX = tp.points[i].y - 160;
#else
magicY = TOUCH_WIDTH - tp.points[i].x;
magicX = tp.points[i].y;
#endif
}
data->point.x = magicX;