[SDL] Still get SDL window with SetVideoMode(0, 0, 0, SDL_SWSURFACE)

manmach nabble at humanemachines.nl
Mon Oct 1 03:39:29 PDT 2007



Sylvain Beucler wrote:
> 
> Hi,
> 
> On Mon, Oct 01, 2007 at 12:20:20AM -0700, manmach wrote:
>> 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).
> 
> This now means "use the current resolution".
> 
> I believe you can disable the window using:
> putenv("SDL_VIDEODRIVER=dummy");
> 
> Can you try that?
> 

I can, I did and it works. At least on my Windows machine. I'll be trying on
my Linux machine next.

Thanks a bundle.

I realise mine might be an unusual usage of SDL, but maybe especially
because of that, it might be worth adding a note to the FAQ for instance.


regards,
Erik
-- 
View this message in context: http://www.nabble.com/Still-get-SDL-window-with-SetVideoMode%280%2C0%2C0%2CSDL_SWSURFACE%29-tf4522887.html#a12976760
Sent from the SDL mailing list archive at Nabble.com.



More information about the SDL mailing list