Colors in GTK+
Posted: Sun Nov 16, 2008 4:52 pm
I know this is a pretty specific topic -- but I know a few of you have programmed GTK, and it's a pretty simple question.
I am trying to code in some widget background colors in RGB. My display is 8x3=24bit truecolor. My version of GTK/GDK is processing my colors through what looks like a 256 color palette -- so they come out looking utterly ridiculous.
Q: does GTK/GDK always use a palette, and play the "closest match to requested color" game? Or is it a fluke that it's using a palette on my truecolor display?
I am trying to code in some widget background colors in RGB. My display is 8x3=24bit truecolor. My version of GTK/GDK is processing my colors through what looks like a 256 color palette -- so they come out looking utterly ridiculous.
Q: does GTK/GDK always use a palette, and play the "closest match to requested color" game? Or is it a fluke that it's using a palette on my truecolor display?