mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Fix inverted vertical
This commit is contained in:
@@ -68,8 +68,14 @@ void screen_lv_touchRead(lv_indev_drv_t *indev_driver, lv_indev_data_t *data)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
magicY = TOUCH_WIDTH - tp.points[i].x;
|
#ifdef CYD_SCREEN_VERTICAL
|
||||||
magicX = tp.points[i].y;
|
// 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;
|
data->point.x = magicX;
|
||||||
|
|||||||
Reference in New Issue
Block a user