[SDL] Blitting speeds

Sam Lantinga slouken at devolution.com
Thu Aug 26 02:17:41 PDT 1999


>    /* Initialize 640x480x16bpp graphics mode */
>    screen = SDL_SetVideoMode(640, 480, 16, SDL_HWPALETTE|SDL_DOUBLEBUF);

That line should be:

     screen = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE|SDL_DOUBLEBUF);

You should also use depth 0, and convert your artwork.

Good luck!

	-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software
--
"Any sufficiently advanced bug is indistinguishable from a feature"
						 -- Rich Kulawiec 



More information about the SDL mailing list