Fix incorrect scaling of absolute mouse coordinates (again)

This commit is contained in:
loki
2021-07-10 23:49:04 +02:00
parent 61be0eb051
commit d55c6ee84c
3 changed files with 22 additions and 9 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ std::shared_ptr<input_t> alloc(safe::mail_t mail);
struct touch_port_t : public platf::touch_port_t {
int env_width, env_height;
// inverse of scalar used for aspect ratio
// Offset x and y coordinates of the client
float client_offsetX, client_offsetY;
float scalar_inv;
};
} // namespace input