[SDL] Hide ouput of the SDL_SetVideoMode
Ken Phillis
dandel at gmail.com
Mon Jul 3 18:24:15 PDT 2006
yea, well i did a bit more and found a easier method, although i wish
a function that will reproduce the desired effects by replacing this
call...
SDL_SetVideoMode(0, 0, 0, SDL_SWSURFACE);
with...
SDL_VideoInit("dummy",SDL_SWSURFACE);
but it's a very unorthodox and unusual method, and i would prefer to
instead call a function like...
void* SDL_SDL_VideoRun();
which automatically initializes the drivers such that it won't fail.
On 7/3/06, Ryan C. Gordon <icculus at icculus.org> wrote:
> 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