[SDL] Why to specify the screen in SDL_UpdateRect(s) ?

Leo M. Cabrera leo28c at gmail.com
Fri Aug 3 15:38:23 PDT 2007


Because you can have many screen surfaces. :-P

(Or did I read it wrong somewhere?)

Miguel Pragier wrote:
> Hello.
>  
> I ways use the SDL_UpdateRect(s) routine to refresh a piece of the 
> surface defined as SCREEN with SDL_SetVideoMode().
>  
> But observing that is necessary to specify "what surface to refresh" 
> in first parameter, a question occurs me: Is there another use to 
> SDL_UpdateRect(s)?
>  
> Why would I update other surface than the screen surface?
>  
>  
> M.P.
> ------------------------------------------------------------------------
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>   



More information about the SDL mailing list