real fix?

This commit is contained in:
stjet
2025-02-08 18:49:32 +00:00
parent bcda14399c
commit c69e89c200

View File

@@ -132,9 +132,9 @@ pub fn init(framebuffer: Framebuffer, framebuffer_info: FramebufferInfo) {
}
if x.is_some() && y.is_some() {
if rotate {
tx1.send(ThreadMessage::Touch(y.unwrap(), x.unwrap())).unwrap();
tx1.send(ThreadMessage::Touch(y.unwrap(), dimensions[1] - x.unwrap())).unwrap();
} else {
tx1.send(ThreadMessage::Touch(dimensions[0] - x.unwrap(), y.unwrap())).unwrap();
tx1.send(ThreadMessage::Touch(x.unwrap(), y.unwrap())).unwrap();
}
x = None;
y = None;