[SDL] Why does the rectangle move so slowly and blink?

Donny Viszneki smirk at thebuicksix.com
Tue Aug 3 18:47:29 PDT 2004


On Aug 3, 2004, at 5:18 PM, newbie wrote:
>     obj = SDL_SetVideoMode(W, H, bpp, 
> SDL_HWSURFACE|SDL_ANYFORMAT|SDL_DOUBLEBUF);
> ...
>     bg = SDL_SetVideoMode(W, H, bpp, 
> SDL_HWSURFACE|SDL_ANYFORMAT|SDL_DOUBLEBUF);
> ...
>     screen = SDL_SetVideoMode(W, H, bpp, 
> SDL_HWSURFACE|SDL_ANYFORMAT|SDL_DOUBLEBUF);

SDL_SetVideoMode does indeed return an SDL_Surface, however it is not 
the way to create a surface, except for when you are creating your 
screen. Use SDL_CreateRGBSurface.

  - Donny Viszneki





More information about the SDL mailing list