[cairo] cairo on cross-endian architectures

Owen Taylor otaylor at redhat.com
Mon Sep 12 05:52:35 PDT 2005


On Mon, 2005-09-12 at 12:17 +0200, Egon Nijns wrote:
> Hi all,
> 
> I'm running into some color problems (red and blue are swapped) with 
> cairo (as used by Mozilla's SVG implementation) on a cross-endian 
> architecture (these were already discussed earlier on the cairo mailing 
> list, I've attached part of the earlier discussion below).
> 
> We are using a Sun Ray Server, and I think that this is a cross-endian 
> architecture, since I'm seeing the swapped colors problem. I've 
> submitted a badly written patch doing the byte-swaps Owen Taylor 
> suggested to Mozilla's bugzilla, and want to clean up the code (I hope 
> that a fix for this can one day be included in cairo).
> 
> The biggest problem I have is that I don't know how to do the 
> cross-endian detection (plus I have no experience with Xlib coding 
> whatsoever), but maybe someone on this list can give me some clues on 
> how to do this properly?

As far as we know, Cairo CVS should work properly with cross-endian
remote display. The fixes there will be in 1.0.2.

There are separate fixes for BGR visuals (common on Solaris) in
bug 4260 that aren't in CVS yet, but also will be in 1.0.2.

Regards,
						Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050912/e396d8b1/attachment.pgp


More information about the cairo mailing list