Why Win2000 can Only Create One Overlay surface at one time?

Hi.
I’m troubled with the Overlay surface!
please give me some questions!

I uses the SDL1.2 ,I enhanced the code to IDirectDrawSurface4 to support the
DstColor Key.

But I found When I run the pragram at first time ,SDL can create the overlay
surfacetime ,then I run the pragram once(at one time run two pragram),but
the SDL create overlay surface error,I can’t find the error code in ddraw.h.

__________________________________________________________________ fu cai
FUcai ICQ#: 162783673 Current ICQ status: + More ways to contact me__________________________________________________________________

Hi.
I’m troubled with the Overlay surface!
please give me some questions!

I uses the SDL1.2 ,I enhanced the code to IDirectDrawSurface4 to support the
DstColor Key.

But I found When I run the pragram at first time ,SDL can create the overlay
surfacetime ,then I run the pragram once(at one time run two pragram),but
the SDL create overlay surface error,I can’t find the error code in ddraw.h.

Does this happen with stock SDL, or just with your changes?
What video hardware do you have? Did you find out what the problem was?

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