We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1813 - MouseMotion relative values do not respect renderer LogicalSize
Summary: MouseMotion relative values do not respect renderer LogicalSize
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.0
Depends on:
Blocks:
 
Reported: 2013-04-18 05:42 UTC by driedfruit
Modified: 2013-07-21 15:54 UTC (History)
0 users

See Also:


Attachments
patch to fix the issue (636 bytes, text/plain)
2013-04-18 05:42 UTC, driedfruit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description driedfruit 2013-04-18 05:42:51 UTC
Created attachment 1119 [details]
patch to fix the issue

A trivial issue, the xrel and yrel values of MouseMotion event struct are not adjusted to renderer logical size.

Note: the attached patch is not ideal, as values like 1, when divided by 2 become 0, so it's still possible to move your mouse and have zero in xrel/yrel at the same time.

However, it makes it more consistent with the x and y values reported by the same event.
Comment 1 Ryan C. Gordon 2013-07-12 22:15:57 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 2.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.
Comment 2 Sam Lantinga 2013-07-21 15:54:50 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/13dfa871f0af