Bug in SDL_Overlay for Win32

I believe I’ve encountered a bug in the SDL_Overlay implementation for
Windows. I’ve put together a small test program which demonstrates this
bug. The test program can be downloaded at

http://www.xmission.com/~redflame/sdl_overlay_bug.zip

The zip file has the information concerning the bug. In a nutshell, the
test program attempts to display two overlays in rapid succession,
alternating back and forth. In linux, and in windows with no
acceleration, it works as expected. But with acceleration enabled, only
one overlay is displayed, and it just kind of sits there, frozen on the
screen. Perhaps I am using SDL_Overlay wrong, but to my knowledge I’ve
followed the API specifications properly…

I believe I’ve encountered a bug in the SDL_Overlay implementation for
Windows. I’ve put together a small test program which demonstrates this
bug. The test program can be downloaded at

http://www.xmission.com/~redflame/sdl_overlay_bug.zip

The zip file has the information concerning the bug. In a nutshell, the
test program attempts to display two overlays in rapid succession,
alternating back and forth. In linux, and in windows with no
acceleration, it works as expected. But with acceleration enabled, only
one overlay is displayed, and it just kind of sits there, frozen on the
screen. Perhaps I am using SDL_Overlay wrong, but to my knowledge I’ve
followed the API specifications properly…

Hmm, SDL only supports one hardware accelerated overlay at a time.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment