[SDL] SDL_GetVideoInfo strangeness

John Philip phip at spymac.com
Sat Nov 29 22:57:01 PST 2003

On my Mac OS X system, calling SDL_SetVideoMode(SDL_HWSURFACE | 
SDL_FULLSCREEN | SDL_DOUBLEBUF) results in a surface with the following 

This SDL_Surface for the screen claims to be a hardware surface, is it 
really? If so, SDL_GetVideoInfo() should be returning hw_available = 
true, and probably some other fields true as well.

On Nov 29, 2003, at 7:15 PM, Darrell Walisser wrote:

> I suppose the wm_available should be set to 1, but otherwise the flags 
> should be zero since there is no hardware surface support in Mac OS X 
> (besides OpenGL, of course).
> An OpenGL backend for SDL would be difficult to manage (perhaps 
> impossible), since OpenGL doesn't allow direct (pointer) access to the 
> framebuffer. To test a pixel in the framebuffer, you have to copy it 
> to system memory first, which can be quite slow.
> An OpenGL frontend is another story - this can work very well, and 
> many people have done it.
> On Nov 29, 2003, at 3:02 PM, sdl-request at libsdl.org wrote:
>> Message: 4
>> To: sdl at libsdl.org
>> From: John Philip <phip at spymac.com>
>> Date: Fri, 28 Nov 2003 19:46:59 -0500
>> Subject: [SDL] SDL_GetVideoInfo strangeness
>> Reply-To: sdl at libsdl.org
>> In Mac OS X with the Quartz driver, all flags returned by
>> SDL_GetVideoInfo() are always 0. This is obviously incorrect, can
>> someone familiar with SDL's Quartz driver comment on this?
>> (OS X 10.3.1, SDL 1.2.6)

More information about the SDL mailing list