SDL_MapRGB

Hi,

I have got the problem, that SDL_MapRGB(surface->format, 0x00, 0x00, 0xff)
the color white returns and not blue!
What is wrong?
SDL_MapRGB(surface->SDL_MapRGB(surface->format, 0x00, 0xff, 0x00) return
white instead of green, too.

Stephan Donndorf STD

“Stephan Donndorf” ha scritto nel messaggio
news:m190k9j-000NArC at localhost…

I have got the problem, that SDL_MapRGB(surface->format, 0x00, 0x00, 0xff)
the color white returns and not blue!
What is wrong?

Are you sure that “surface” is inizialized ?–
Bye.
SkunkGuru.