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 713 - clamped mouse position after window resize
Summary: clamped mouse position after window resize
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 1.2.13
Hardware: x86 Windows (XP)
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
: 425 845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-13 06:41 UTC by steriodas
Modified: 2009-10-12 11:52 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steriodas 2009-03-13 06:41:47 UTC
The short version is this:
When I create a window 600x400, then resize it to something bigger, without destroying context (mainly because I use OpenGL), mouse coordinates got from 
SDL_GetMouseState() are simply clamped at 600x400 instead of going all the way.
Drawing, and mouse button events are still sent, but the position is always clamped to the initial window size.
Also, shouldn't the mouse position be available even if mouse is outside the window?
Comment 1 steriodas 2009-03-14 05:39:17 UTC
I forgot to add, This only happens if I don't recreate the window after resizing it (mainly not to lose openGL context).
Comment 2 Ryan C. Gordon 2009-09-13 16:33:34 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 3 Tim Angus 2009-09-17 03:06:04 UTC
Is it definitely 1.2.13 you're seeing this with and not SVN? I ask only because the changes I made for bug #611 were relatively invasive and could potentially be the cause of this. A test case would be useful.
Comment 4 Sam Lantinga 2009-09-26 22:19:18 UTC
This is fixed for the next SDL release, thanks!

(revision 4865)
Comment 5 Sam Lantinga 2009-09-26 22:22:01 UTC
*** Bug 425 has been marked as a duplicate of this bug. ***
Comment 6 Sam Lantinga 2009-10-12 11:52:42 UTC
*** Bug 845 has been marked as a duplicate of this bug. ***