SDL_GetVideoSurface return 0 on XP?

Trying to get the current video resolution prior to SDL_SetVideoMode(). Sadly
both SDL_GetVideoInfo() and SDL_GetVideoSurface() return 0;

Is there a pre-condition I should be aware of? Does this simply not work on XP
or is it a problem with specific video drivers?

thanks.

I use WinXP home, and have had no problems with setting a videomode…make
sure that when you initialize sdl, you have the SDL_INIT_VIDEO flag setOn 3/1/06, Graham wrote:

Trying to get the current video resolution prior to SDL_SetVideoMode().
Sadly
both SDL_GetVideoInfo() and SDL_GetVideoSurface() return 0;

Is there a pre-condition I should be aware of? Does this simply not work
on XP
or is it a problem with specific video drivers?

thanks.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Trying to get the current video resolution prior to SDL_SetVideoMode(). Sadly
both SDL_GetVideoInfo() and SDL_GetVideoSurface() return 0;

Is there a pre-condition I should be aware of? Does this simply not work on XP
or is it a problem with specific video drivers?

It’s actually not implemented for windowed environments, but returning
the current desktop resolution makes a lot of sense, and it’s on the TODO
list: https://bugzilla.libsdl.org/show_bug.cgi?id=66

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment