On Mon, 17 Aug 2009 16:06:56 +0700 Mikhail Gusarov <dotted...@dottedmag.net> said:
> > Twas brillig at 12:15:55 17.08.2009 UTC+10 when ras...@rasterman.com did gyre > and gimble: > > CHR> you can query palettes in x - yes. XGetRGBColormaps() to read > CHR> colormaps. but i don't quite know how your x is set up? is it set > CHR> up that its default visual is a greyscale one? or indexed color? > CHR> truecolor? > > StaticGray then that's defined i think as 0 -> N where N is the highest value supported by the bits, and N being white, 0 being black. ? so no need for colormap games or palettes? just if visual == staticgray get depth - and then have N greyscale converters - using the one that handles your depth (1, 2, 3, 4, 5, 6, 7 or 8 bits) :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel