The SDL forums have moved to
This is just a read-only archive of the previous forums, to keep old links working.
Simple Directmedia Layer Forums
SDL SURFACE QUERY
Posted: Wed May 20, 2009 8:37 am
I m new to sdl. I m trying sum basic things like I wish to make a surface on a
bigger surface and change the color of the smaller surface to red.
I used following code for smaller surface:
Surface = SDL_CreateRGBSurface(SDL_SWSURFACE, rect.w, rect.h,
SDL_FillRect(Surface, NULL, SDL_MapRGB(m_pSurface->format, 255, 0,0));
but the color is not getting set. pls help.
© phpBB Group
Content © SDL