bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28590] Cairo backend displays wrong colors on X server with a diff


From: Wolfgang Lux
Subject: [bug #28590] Cairo backend displays wrong colors on X server with a different endianness
Date: Thu, 14 Jan 2010 16:54:33 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PowerPC Mac OS X 10_4_11; en-US) AppleWebKit/531.9+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.10.0

Follow-up Comment #5, bug #28590 (project gnustep):

I finally managed to track down this bug. There is an endianness mismatch for
the XImage used as backing store. In XWindowBuffer
+windowBufferForWindow:depthInfo: the image is initialized with the byte order
of the X11 display. However, the memory based cairo image surface allocated in
XGCairoXImageSurface -initWithDevice: uses the host's native byte order. I
have attached a rather hackish patch to set the correct byte order for the
backing store; probably, there is a better way to do this.

(file #19492)
    _______________________________________________________

Additional Item Attachment:

File name: hack#28590.patch               Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28590>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]