I typed too soon
If you have the 0.5 archive anywhere, have a look @
JEDI-SDL/Demos/2D/SDLTests/testwin/
That Delphi project makes use of SDL_SetColors()
The fix to your code is obvious if I had paid attention to what you had typed earlier about palette being a PSDL_Palette...
Code:if (image.format.palette <> nil ) and ( screen_.format.palette <> nil ) then begin SDL_SetColors(screen_, @image.format.palette.colors[0], 0, image.format.palette.ncolors); end;
Bookmarks