| Summary: | Resize event overflowing the event queue | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Will <willeom> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Windows Vista | ||
| Attachments: | A patch | ||
|
Description
Will
2009-01-01 14:50:05 UTC
Created attachment 287 [details]
A patch
This patch fixes this bug by removing unnecessary window resize events.
I added a patch based on how SDL-1.2 handles the issue in "SDL_resize.c" line #58: /* Pull out all old resize events */ SDL_PeepEvents(events, sizeof(events)/sizeof(events[0]), SDL_GETEVENT, SDL_VIDEORESIZEMASK); Due to changes in SDL-1.3 "SDL_FilterEvents()" is used instead. (In reply to comment #1) > Created an attachment (id=287) [details] > A patch > > This patch fixes this bug by removing unnecessary window resize events. > Ah crud, My patch somehow kills mouse events. DO NOT APPLY THIS PATCH! (In reply to comment #3) > Ah crud, My patch somehow kills mouse events. > > DO NOT APPLY THIS PATCH! > Man I must be having a bad night! Short version: The patch that I thought was bad is probably fine (please test it!) Long version: OK so it turns out that I have the same problem before the patch is applied. Given that I was using the official build before my patched version, the problem is probably in my MinGW/MSYS build environment. So the mouse problem was not caused by the patch and it should be fine! Sorry about that and all these self reply's and thanks! --Bill (In reply to comment #1) > Created an attachment (id=287) [details] > A patch > > This patch fixes this bug by removing unnecessary window resize events. > Whoops, the file to be patched is src/video/win32/SDL_win32events.c |