1 bit colordepth

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.

-Barni

Hello !

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.

I do not think SDL supports 1 Bit Color Depth.

CU

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;
}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.


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