[SDL] A quick question that have been on my mind for a while

Sam Lantinga slouken at devolution.com
Wed Aug 20 13:48:10 PDT 2003


> mGameSurface = SDL_CreateRGBSurface(video_surface->flags,
>                                        video_surface->w,
>                                        video_surface->h,
>                                        video_surface->format->BitsPerPixel,
>                                        video_surface->format->Rmask,
>                                        video_surface->format->Gmask,
>                                        video_surface->format->Bmask,
>                                        video_surface->format->Amask);

> So, thats my question ;)

Yep, that's the right way to do it.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list