Won't do windowed HWSURFACE on directx

I’ve confirmed that SDL will not create a SDL_HWSURFACE on a
window that is not SDL_FULLSCREEN. this is with the DIRECTX
video driver on windows.

I’ve tried many combinations of flags, but the only way to
get hardware acceleration with directx under sdl is to go
fullscreen.

Several months ago i thought i had seen this and someone
(i think sam?) said if it was really happening then it was
probably a bug.

Well now i’ve really tested it out, and it is really happening.
This is with SDL-1.1.8 and Directx 7. (on a TNT2 card)

Is it possible it is a limitation of your video card?

I’ve got two Win95/DX8 machines here with different video cards (ATI RageII+
and Voodoo3) that I could run your test on, if you would like to get a
bigger sample…–

Olivier A. Dagenais - Software Architect and Developer

“Pete Shinners” wrote in message
news:99g3js$i01$1 at ftp.lokigames.com

I’ve confirmed that SDL will not create a SDL_HWSURFACE on a
window that is not SDL_FULLSCREEN. this is with the DIRECTX
video driver on windows.

I’ve tried many combinations of flags, but the only way to
get hardware acceleration with directx under sdl is to go
fullscreen.

Several months ago i thought i had seen this and someone
(i think sam?) said if it was really happening then it was
probably a bug.

Well now i’ve really tested it out, and it is really happening.
This is with SDL-1.1.8 and Directx 7. (on a TNT2 card)

I’ve confirmed that SDL will not create a SDL_HWSURFACE on a
window that is not SDL_FULLSCREEN. this is with the DIRECTX
video driver on windows.

That’s correct behavior. SDL will only give you a hardware surface
if you are in fullscreen mode (have exclusive access to the video
hardware.)

This will not always be true in the new API, but that’s a ways off
right now.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software