[SDL] Still get SDL window with SetVideoMode(0,0,0,SDL_SWSURFACE)
manmach
nabble at humanemachines.nl
Mon Oct 1 00:20:20 PDT 2007
I have a wxWidgets application that uses SDL for image processing, but not
for output.
So in order not to have an SDL window, I would call
SDL_SetVideoMode(0,0,0,SDL_SWSURFACE). Or leave it out altogether, which
seemed to work too.
I could then create surfaces and overlays and have blit them to my wxWidgets
controls.
But now that I have upgraded to 1.2.12, I get an SDL window of the current
desktop size if I call SDL_SetVideoMode as in agreement with the changes
introduced with 1.2.10.
And if I leave it out, I get no window, but then SDL_DisplayYUVOverlay
fails, presumably because it clips the rectangle to the screen area, which
is absent.
If have verified this by removing the lines from SDL_yuc.c that check for
screen height and width. Without these lines I can use SDL without calling
SDL_SetVideoMode and have SDL_DisplayYUVOverlay work too.
I am sure there might be unwanted side effects, so I leave it up to you
experts to point me to a better solution.
Please advise.
--
View this message in context: http://www.nabble.com/Still-get-SDL-window-with-SetVideoMode%280%2C0%2C0%2CSDL_SWSURFACE%29-tf4522887.html#a12902720
Sent from the SDL mailing list archive at Nabble.com.
More information about the SDL
mailing list