Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

yogix

get available screen resolution ?

This topic is 5967 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

me = Linux newbie ;P How can I get the availables resolutions supported by my 3D card under Linux ? (with C++ code)

Share this post


Link to post
Share on other sites
Advertisement
me = "veteran" Linux newbie
I don''t think linux can detect all the available modes of your graphic board, you have to get them from the specifications sheet that comes with the board.
The proof is that when you install Linux, it ASKS you to enter what resolution and color modes ( bpp ) you have ( some distro give you the oportunity to test the entered parameters ) before writing them to the /etc/X11/X86Config-file ).
Of course, it''s just a newbie opinion

Share this post


Link to post
Share on other sites
If you are using Xlib, look at the header file
X11/extensions/xf86vmode.h

I''ve touched through it a few times but never really
went into depth with it.

You can use the function XF86VidModeQueryExtension() and then XF86VidModeQueryVersion() to see if your X server supports it.

This is comming from a 6 year Xlib veteran, so you do need a lot of background to work with that. Most of the time I would let the user decide which video mode they want.

Share this post


Link to post
Share on other sites
Actually, newer versions of X will determine the refresh rates and stuff, and I believe that there are some programs that will be able to detect all possible resolutions that the video card can handle.

rm -rf /bin/laden

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!