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 666 - Resize event causes event queue to overflow and drop events
Summary: Resize event causes event queue to overflow and drop events
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.0
Hardware: x86 Windows (All)
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 12:31 UTC by Will
Modified: 2009-12-15 16:56 UTC (History)
0 users

See Also:


Attachments
Fix (436 bytes, patch)
2009-01-03 12:36 UTC, Will
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Will 2009-01-03 12:31:02 UTC
As I resize my SDL window the event queue fills with resize events.
These resize events don't get processed until I release the mouse (probably because I'm using OpenGL). If I resize for too long, the remaining events get dropped!

Example:
When I release my mouse after resizing I get an sizing animation effect on my OpenGL view port and if I took too long to resize my window the view port gets stuck at the wrong size!
Comment 1 Will 2009-01-03 12:36:25 UTC
Created attachment 288 [details]
Fix

This patch goes on SDL-1.3\src\video\win32\SDL_win32events.c
Comment 2 Sam Lantinga 2009-12-15 16:56:49 UTC
I actually fixed this in platform independent code with revision 5408.

Thanks!