| Summary: | Bad mouse motion coordinates with two windows where one has changed logical size | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Andreas Ragnerstam <andreas.ragnerstam> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | Keywords: | target-2.0.4 |
| Version: | 2.0.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Suggested fix | ||
|
Description
Andreas Ragnerstam
2014-01-27 13:11:08 UTC
One way to reproduce a similar error is to run a example from the test suite as follows: ./testrendercopyex --windows 2 --geometry 640x480 --logical 1280x960 Then move the mouse pointer to the lower right corner and press space. The coordinates shown will be the double that one would expect. This is because the scale (.5) is divided twice. Created attachment 1538 [details]
Suggested fix
Here is a patch that solves the problem for me.
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! (sorry if you get a lot of copies of this email, I'm marking several bugs at once) Marking bugs for the (mostly) final 2.0.4 TODO list. This means we're hoping to resolve this bug before 2.0.4 ships if possible. In a perfect world, the open bug count with the target-2.0.4 keyword is zero when we ship. (Note that closing a bug report as WONTFIX, INVALID or WORKSFORME might still happen.) --ryan. Fixed, thanks! https://hg.libsdl.org/SDL/rev/aea5a2032785 |