LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2003, 09:55 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Color: why is 32bit windows = 24bit linux ??


Hello...
it seems XFree86 supports a maximum of only 24bit colour.
but ive seen people saying linux gets the same number of colours out of 24bits, as windows gets from 32 bits.

is this true ?
if so can some-one explain to me how this is done ?

is it somthing to do with alpha channels and transparancy ???

thankyou.
 
Old 12-10-2003, 10:28 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ok, here's what ve found out, (but it only partially answers my question)...

8 bits in a byte,
1 byte for red
1 byte for green
1 byte for blue
1 byte for transparancy = 4 bytes or 32bits.

what it looks like is happening...
is windows is sat there saying "Hey, i got 32 bits of colour"

and linux is sat saying "Hey, i get 24 bits of colour, and 8 bits of transparency"

is this whole things just one of those "Ahaaaa but a thumb isnt a finger" kind of jokes ?
 
Old 12-10-2003, 10:28 PM   #3
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
You've got it right with the alpha channels. 32 bits add another 8 bits for each pixel which controls the alpha of that pixel. This allows cool effects like transparency but it means more processiing and memory is required. Right now X doesn't support 32 bits, only 24, and transparency is done in kind of a hackish way. Try turning it on in gnome-terminal, Eterm, what have you, and you'll see what I mean. Instead of being transparent so you can see the window below you will see the desktop wallpaper no matter how many windows you're on top of. The freedesktop Xserver project is working on transparency and right now it kind of works. Let's hope it matures enough into something really cool.
 
Old 12-10-2003, 10:34 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ahhh....
ok, i get it.

so its only X that is flawed in this way, i take it my games are capable of running in 32bit colour.

anyway, thanks.
 
Old 12-10-2003, 10:39 PM   #5
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Many games will still work with 24 bit color. UT2003 for example actually runs better on Linux with color depth set to 32 bit (which we know X won't do) than if we set it back to 16 bit. Not sure why but that's what I've experienced.
 
Old 12-10-2003, 10:41 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
wow yeah, gnome-terminal SUCKS with transparency
when you say it kinda works now... is that a kind of works in a unstable beta, and will be stable in the distant future ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Echo Mia 24bit/96khz audio in Linux? patientzero Linux - Hardware 6 05-23-2007 06:24 PM
no 32bit color in linux? kryptobs2000 Linux - General 4 03-01-2005 08:52 PM
No Sound with Red Hat Linux 9 and SoundBlaster Live 24bit meb124 Linux - Hardware 10 02-05-2005 08:57 AM
Why does X windows color depth affect font size??? Erik Thorsson Debian 2 01-15-2005 12:28 AM
[COLOR=red]ENCORE WIRELESS PCI Card 802.11b [/COLOR] enrique145 Linux - Hardware 3 07-07-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration