Weird behavior in win32 windowed mode

I’m sorry about posting this message once again, but can somebody answer
me:

is this a bug or what, but when in Windows i switch my windowed SDL game
to another fullscreen application (FAR, NC etc.) and then switch back to
my SDL game it seems, that this windowed surface is not restored. Because
the only way i can do something is to delete old screen surface with
SDL_FreeSurface, and then again call SetVideoMode to get a new window
where i can draw.
No errors are generated when the screen surface is lost, and can blit to
it without the errors, but nothing happens.
A fullscreen mode works correctly, in such situations.

And another weird behavior- i have TNT card and for me all works, but
on other cards when i have several surfaces with different colors keys and
i blit them to a screen, it seems that just one of all different colorkeys
is used. And thats why i get colored rectangles around the sprites. Is
this a bug or what?

I’m using SDL 1.0.8 and Win98.

Kovacs

is this a bug or what, but when in Windows i switch my windowed SDL game
to another fullscreen application (FAR, NC etc.) and then switch back to
my SDL game it seems, that this windowed surface is not restored. Because
the only way i can do something is to delete old screen surface with
SDL_FreeSurface, and then again call SetVideoMode to get a new window
where i can draw.
No errors are generated when the screen surface is lost, and can blit to
it without the errors, but nothing happens.
A fullscreen mode works correctly, in such situations.

This is a bug. I’ll look at it when I get a chance.

And another weird behavior- i have TNT card and for me all works, but
on other cards when i have several surfaces with different colors keys and
i blit them to a screen, it seems that just one of all different colorkeys
is used. And thats why i get colored rectangles around the sprites. Is
this a bug or what?

What card exhibits this problem? It sounds like a bug in DirectX.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

And another weird behavior- i have TNT card and for me all works, but
on other cards when i have several surfaces with different colors keys and
i blit them to a screen, it seems that just one of all different colorkeys
is used. And thats why i get colored rectangles around the sprites. Is
this a bug or what?

What card exhibits this problem? It sounds like a bug in DirectX.

This bug was in windowed mode. (forgot to say…) I will do some
testing in fullscreen mode. But this bug didn’t show up on my TNT card,
but on ATI Charger, S3 Virge it did.

Kovacs