[comp.windows.x] Why doesn't xmag work with 8-bitplane images?

paul@cacilj.UUCP (Paul Close) (02/01/89)

I put some images on the screen from the `xim' x image package (from contrib).
When I try to use xmag on a part of the image, I just get black and white and
the occasional extra color--not the 256 or so colors originally used!

What gives?  `spy' does the same thing....
-- 
Paul Close	paul@cacilj.CTS.COM 	...!{uunet, ucsd, crash}!cacilj!paul

    The Obi-wan Kenobi method:  "Use the Source, Luke"	-Jim Fulton

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (02/02/89)

xmag is broken in that it doesn't attempt to use the visual or colormap
of the selected window.  If xim selects a new colormap, xmag won't do
the right thing.  If your problem is something else, try asking again.

paul@cacilj.UUCP (Paul Close) (02/09/89)

In article <8902011901.AA01516@EXPIRE.LCS.MIT.EDU> rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes:
>xmag is broken in that it doesn't attempt to use the visual or colormap
>of the selected window.  If xim selects a new colormap, xmag won't do
>the right thing.  If your problem is something else, try asking again.

The problems don't exist on a Sun-4, but they do exist on the Apollo, so
I am assuming this is an Apollo-specific bug.  This is under SR10.0
with the MIT code.  I think I applied the first three patches.  This is
a server bug.  (I've run the sun-4's xmag on the apollo display and it
doesn't work.)

I tried 'puzzle -picture mandrill.cm' to use the default colormap, and
still got the strange colors and lack of depth.  I tried 'puzzle -picture
mandrill.cm -cm' to make a new colormap (which produces strange colors)
and the problem persists.  The color numbers xmag talks about are ALWAYS
in the range 0-15, and there are usually only four distinct values.  [ Is
the new colormap problem one of those "hallucinogenic bugs" Dave Rosenthal
was talking about? :-]

Also (Apollo only), xmag is prone to displaying wide horizontal bands instead
of the actual pixels, even on black & white images like xterm.  For example,
instead of:,			 sometimes I get:

    .............................        .............................
    .............................        .............................
    .....X.........X.............        XXXXXXX........X.............
    .....X.........X.....XX......        .....X.........X..........XX.
    .....X.........X.............        XXXXXXX........X.............
    .....X.........X.....XX......        .....X.........X..XXXXXXXXXX.
    .....XXXXXXXXXXX......X......        XXXXXXXXXXXXXXXX...........X.
    .....X.........X......X......        .....X.........X...........X.
    .....X.........X......X......        XXXXXXX........X...........X.
    .....X.........X......X......        .....X.........X...........X.
    .....X.........X....XXXXX....        XXXXXXX........X..XXXXXXXXXXX
    .............................        .............................
    .............................        .............................
-- 
Paul Close	paul@cacilj.CTS.COM 	...!{uunet, ucsd, crash}!cacilj!paul

    The Obi-wan Kenobi method:  "Use the Source, Luke"	-Jim Fulton