Getting largest video mode

Hi all,

I’m trying to get it with SDL_ListModes, but it is returning -1 to me, and SDL_VideoModeOK just checks the mode that I wan’t…
But if I’m going to scale my hole program to a largest mode, e.g., from 800x600 to 1024x768, I need to know that the video supports 1024x768, instead of “All modes avaliable.”, that SDL_ListModes gives me.
I’m using XFree 4.0.3 with icewm at 1024x768x16 on SiS530 with 4MB.
Any suggestion?

Thanks for helping,–
Marcelo R Leitner
ICQ #: 29966851
Kill’em All … And Justice For All.

I’m trying to get it with SDL_ListModes, but it is returning -1 to me,
and SDL_VideoModeOK just checks the mode that I wan’t… But if I’m
going to scale my hole program to a largest mode, e.g., from 800x600
to 1024x768, I need to know that the video supports 1024x768, instead
of “All modes avaliable.”, that SDL_ListModes gives me. I’m using
XFree 4.0.3 with icewm at 1024x768x16 on SiS530 with 4MB. Any
suggestion?

Make sure you pass SDL_FULLSCREEN in SDL_ListModes() flags.

–ryan.

—end quoted text—

Thank you very much for being the only one that responds to me!! :slight_smile:
It worked now… thanks!!

[]'sOn Thu, Sep 20, 2001 at 04:41:25AM -0400, Ryan C. Gordon wrote:

Make sure you pass SDL_FULLSCREEN in SDL_ListModes() flags.

Marcelo R Leitner
ICQ #: 29966851
Kill’em All … And Justice For All.