File: more-than-8bpp.patch

package info (click to toggle)
treetool 2.0.2a-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,164 kB
  • ctags: 2,695
  • sloc: ansic: 26,504; makefile: 216
file content (28 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Pierre Rioux <riouxp@megasun.BCH.UMontreal.CA> :

    This message might help people having the same problem
under Solaris:

    I succeeded in "patching" treetool 2.0.1 such that it works
on displays with more than just 8 bitplanes. I simply commented
out in the file graphics/color.c the lines that called
XStoreColor(). There are exactly 6 such lines in the file,
one of them is

    /* result=XStoreColor(ch->xdpy, ch->cmap, &ch->cl->c); */

(shown here after I commented it out!) Just look for the string
"XStoreColor"; BTW sometimes the function's return value is
ignored.

    Now it runs on 24 bit displays; however the "color editor"
panels won't work at all (you're stuck with the default colors,
but here at the OGMP we don't mind that since we never change
the colors anyway). It's up to you to decide if this is good
enough or not. I agree this "patch" is not the most amazing
invention since sliced bread. :-)

    Pierre
-- 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: riouxp@iro.umontreal.ca :: A millihelen is the amount of beauty ::