Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to retrieve the current gfx config?
#1
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
Reply
#2
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.
·~¹'°¨°'¹i|¡~æthérFòx~¡|i¹'°¨°'¹~·-
avinash.vora - http://www.avinashv.net
Reply
#3
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.'
Reply
#4
Apparrently Lillo's watching this forum, cause "screenlist" was just added Smile
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)