[SDL] 1 bit colordepth

Paul Duffy odubtaig at yahoo.co.uk
Thu Oct 11 12:03:07 PDT 2007


On Thu, 2007-10-11 at 20:53 +0300, Barni wrote:
> Hi
> 
> I'm interested about 1 bit colordepth usage of the SDL.
> Have anybody done such a thing? I managed to create a surface but most 
> of the functions (SDL_FillRect) for example return's -1.

The functions are mostly (if not all) stubs for 1 and 4 bit depths.

e.g.

static int SDL_FillRect1(SDL_Surface *dst, SDL_Rect *dstrect, Uint32
color)
{
	/* FIXME: We have to worry about packing order.. *sigh* */
	SDL_SetError("1-bpp rect fill not yet implemented");
	return -1;
}


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


More information about the SDL mailing list