[Aranym-dev] NFVDI "soft" cursor redraw with 8bpp

Petr Stehlik pstehlik at sophics.cz
Fri Aug 28 16:20:46 CEST 2009


Philipp Donzé píše v Čt 27. 08. 2009 v 23:37 +0200:
> Hi Petr
> 
> >> Now I'm only wondering what is the problem with NFVDI and 24 bit true
> >> color mode... I have to check this out too.
> >
> > Please do. I am about to release new version and I like these  
> > fixes :-)
> 
> I didn't find the problem yet. I learned that it is possible to  
> specify the bit format when creating the SDL surface: So I added the  
> following in hostsurface.cpp, HostSurface::HostSurface:
> -------------------------
> 	uint32 rmask=0, gmask=0, bmask=0;
> 	if (bpp == 24) {
> #if SDL_BYTEORDER == SDL_BIG_ENDIAN
> 		rmask = 0xff0000;
> 		gmask = 0x00ff00;
> 		bmask = 0x0000ff;
> #else
> 		rmask = 0x0000ff;
> 		gmask = 0x00ff00;
> 		bmask = 0xff0000;
> #endif
> 	}
> 	surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, bpp,
> 								   rmask, gmask, bmask, 0);

BTW, try this:

tail -n 2 aranym/TODO

So maybe Patrice knows something :)

Petr




More information about the cz-bobek-lists-aranym mailing list