Jump to content
  • Advertisement

Archived

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

Drag0n

Changing bit depth in Linux?

This topic is 5397 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

Hi! I''m already quite familiar with the XF86VidMode extension, but I noticed that it isn''t possible to change the bit depth through this extension. How do you do it then? Not that it is really important, but I''m just curious! cya, Drag0n ----------------------------- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook My future web presence: Dave''s Programming Resources

Share this post


Link to post
Share on other sites
Advertisement
in your XFree86 config file ( normaly /etc/X11/XF86Config ), in the "Screen" Module, you have to write something like this:


Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection


Share this post


Link to post
Share on other sites
quote:
Original post by 666_1337
in your XFree86 config file ( normaly /etc/X11/XF86Config ), in the "Screen" Module, you have to write something like this:


Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection





Yeah, I already have the 16bit and 24bit modes, but I want to use Xlib for changing the bit depth!

cya,
Drag0n


-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources

Share this post


Link to post
Share on other sites
The RANDR extension changes resolution on the fly. I''m not sure if it can do bit-depths aswell, but it would be the first place to look.

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!