mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-20 21:23:25 +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
|
||||
{
|
||||
magicY = TOUCH_WIDTH - tp.points[i].x;
|
||||
magicX = tp.points[i].y;
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user