| Summary: | Calling SDL_VideoInit( NULL,0 ); blocks all events from occurring | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ken Rogoway <Ken> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (XP) | ||
| Attachments: | Project, Source and Assets to demonstrate the bug | ||
Actually you don't need to call SDL_VideoInit() if you call SDL_Init(SDL_INIT_VIDEO) (guess why? ;)) However this should still work, and I've fixed it in subversion: Committed revision 5536 Thanks! |
Created attachment 471 [details] Project, Source and Assets to demonstrate the bug If you are using SDL 1.3 Native functions and call: SDL_VideoInit( NULL,0 ); You will not get any events in the SDL_Event structure when you call SDL_PollEvents(). I have attached a sample app to demonstrate this. If you run it like this: MinApp.exe Everything works fine. If you run it like this: MinApp.exe -videoinit All events are blocked. Sources and assets provided. Built against SDL 1.3 Revision 5437 If you build it with VS2005 you will need to change the Include and Library path to point to your SDL. If you run it under the debugger you will need to add "..\Bin" as your working directory.