[SDL] Patch for SDL PicoGUI support

Micah Dowty micah at navi.picogui.org
Sat Jul 27 04:42:01 PDT 2002


> > ***
> > SDL_FillRect(screen, NULL, 0x00000000); //screen set to black, screen is a 1024x768x16 window
> > SDL_FillRect(test, NULL, 0xFFFFFF00); //test to white
> > ***
> 
> These values may work, but the third parameter is a _pixel_, the format
> of which may vary depending on the format of the destination surface.
> 

So how do I setup a _pixel_ to fill the surface ?




More information about the SDL mailing list