[SDL] Hide ouput of the SDL_SetVideoMode

Ryan C. Gordon icculus at icculus.org
Mon Jul 3 05:34:59 PDT 2006


> how do i enable that... and also keep my hardware based acceleration?

The wxWidgets example program that was posted isn't using an SDL 
hardware surface at all. They could have stripped out the SDL code and 
used a malloc for the SDL_CreateRGBSurface() call, since they requested 
a SWSURFACE and because they needed to explicitly lock it to touch 
pixels anyhow...nor is it using a hardware-accelerated blit (it copies 
the SDL software surface to a wxBitmap.

Frankly, that example code would probably run faster if they removed the 
SDL dependency.  :)

--ryan.





More information about the SDL mailing list