Windows MessageBox() strangeness fixes

Hello all,

I think this should fix the issues that people were seeing with
MessageBox() not working and therefore assert() on mingw/msvc. Forgive
me if i’ve screwed up making the diff file - I’m a total newb when it
comes to things like CVS and diff.

It modifies a few files as I saw that FlushMessageQueue() was in both
the windx5 and windib driver, so I moved this into wincommon. It was
also in the gapi driver, so I changed that too. The function is now
WIN_FlushMessageQueue() in src/video/wincommon/SDL_syswm.c–
Best regards,
Peter mailto:@Peter_Mulholland
-------------- next part --------------
A non-text attachment was scrubbed…
Name: msgloopfix.diff
Type: application/octet-stream
Size: 12460 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060314/186b9756/attachment.obj

I think this should fix the issues that people were seeing with
MessageBox() not working and therefore assert() on mingw/msvc. Forgive
me if i’ve screwed up making the diff file - I’m a total newb when it
comes to things like CVS and diff.

Okay, this is in CVS, with a few tweaks.

I tested msgbox.c with this patch, built with Cygwin32, and got
two assert messages.

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment