[SDL] Re: Create RGB Surface
Rainer Deyke
root at rainerdeyke.com
Mon Aug 21 14:22:53 PDT 2000
"Luc-Olivier de Charrière" <Luc-Olivier.deCharriere at epfl.ch> wrote in
message news:39A19413.6EACE055 at epfl.ch...
> This is a bad way to copy a SDL_surface.
> You should copy the surface with an apropriate function:
>
> SDL_BlitSurface(screen, cuttingRect, s2, pastingRect);
Won't work with color-keys or alpha. SDL_DisplayFormat fixes this by
temporarily turning off color-keys and alpha. Note that this is ugly and
doesn't work for per-pixel alpha.
There should be a special function for this in SDL.
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the SDL
mailing list