dmx image color distortion across displays with different byte order (with patch)

Junling Ma junlingm at math.mcmaster.ca
Sun Apr 23 00:03:27 PDT 2006


Hi,

If dmx manages two remote screens with different byte order, then images 
displayed on the screen with different byte order from the server gets color 
distortion.

For example, suppose there are two boxes A and B, where A is on an x86 and B 
is on a ppc. If Xdmx is started from an x86 box then image on B is 
color-distorted.

The following patch fixes this problem.

Regards,
Junling Ma

Index: hw/dmx/dmxgcops.c
===================================================================
RCS file: /cvs/xorg/xserver/xorg/hw/dmx/dmxgcops.c,v
retrieving revision 1.3
diff -r1.3 dmxgcops.c
112a113,119
>     /*  The byte order of img is the byte order of the display 
>         dmxScreen->beDisplay. This may not be the same as the image byte
>         order of the dmx server, in which pBits is actually stored. So
>         we have to set the bit order of img to be the image byte order
>         of the dmx server. */
>     img->byte_order=screenInfo.imageByteOrder;
> 



More information about the xorg mailing list