Posts: 1,407
Threads: 117
Joined: Dec 2002
For gfx programs in fullscreen mode this is not needed, but before setting a windowed mode, how can I know the user's graphics settings so i can set the same color depth? A portable way, if it's possible...
Antoni
Posts: 780
Threads: 49
Joined: Dec 2001
I doubt there is a portable way, but as I remember there is an API call to check that...head over to MSDN or use API spy if you've got Visual Studio installed.
Posts: 451
Threads: 16
Joined: Feb 2003
If you're using SDL, then you can use the SDL_GetVideoInfo function to return the current GUI environment.
Since SDL is cross-platform (Win32/Linux/BeOS/MacOS/etc), it works on all systems. It doesn't work in DOS being as there is no DOS port of SDL and the DOS port of FreeBASIC is a joke, right? Someones just doing it "because" and not actually expecting people to use it right?
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Posts: 979
Threads: 27
Joined: Aug 2001
Apparrently Lillo's watching this forum, cause "screenlist" was just added
Posts: 1,407
Threads: 117
Joined: Dec 2002
AFAIK screenlist lists the available modes in the card, very useful for fullscreen programs setting their own mode, but does'n tell what mode was selected at the start of the program, this would be useful for windowed programs.
Antoni