SDL-1.1.0, Win32, GDI, Fullscreen, 8-bit

Has anyone tried 8-bit graphics with the new Win32 GDI fullscreen mode
available in SDL-1.1.0? As far as I can tell, there is something wrong with
SDL_SetColors or palettes in general, 16-bit works fine. My fullscreen 8-bit
stuff works with DirectX but the colors are messed up on NT4 using Win32
GDI. I also tried SDL Maelstrom on NT4 with the"-fullscreen" option (and the
new dll) and that isn’t right either. It works but it looks like it’s
mapping (as best as it can) to the default windows palette.

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

Randi J. Relander wrote:

Has anyone tried 8-bit graphics with the new Win32 GDI
fullscreen mode available in SDL-1.1.0? As far as I can
tell, there is something wrong with SDL_SetColors or
palettes in general, 16-bit works fine. My fullscreen 8-bit
stuff works with DirectX but the colors are messed up on
NT4 using Win32 GDI. I also tried SDL Maelstrom on
NT4 with the"-fullscreen" option (and the new dll) and
that isn’t right either. It works but it looks like it’s mapping
(as best as it can) to the default windows palette.

Anybody?

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

Randi J. Relander wrote:

Has anyone tried 8-bit graphics with the new Win32 GDI
fullscreen mode available in SDL-1.1.0? As far as I can
tell, there is something wrong with SDL_SetColors or
palettes in general, 16-bit works fine. My fullscreen 8-bit
stuff works with DirectX but the colors are messed up on
NT4 using Win32 GDI. I also tried SDL Maelstrom on
NT4 with the"-fullscreen" option (and the new dll) and
that isn’t right either. It works but it looks like it’s mapping
(as best as it can) to the default windows palette.

Anybody?

You can look at the code in:
src/video/windib/SDL_dibvideo.c

I haven’t touched it in a while, and I don’t have access to an NT machine
at the moment.

See ya!
-Sam Lantinga (slouken at devolution.com)

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

Sam Lantinga write:

Randi J. Relander wrote:

Has anyone tried 8-bit graphics with the new Win32 GDI
fullscreen mode available in SDL-1.1.0? As far as I can
tell, there is something wrong with SDL_SetColors or
palettes in general, 16-bit works fine.

You can look at the code in:
src/video/windib/SDL_dibvideo.c

I haven’t touched it in a while, and I don’t have access to an
NT machine at the moment.

I just wanted to see if anyone had seen the same thing before I started
digging. I know that the SDL_dx5video.c code goes out of its way to do
palette stuff and I have a bad feeling that the fullscreen DIB code will
have to do something similar. I will disable the DirectX support in SDL and
look at it on my Win98 box at home.

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html