#6348 NORM Never A: OLPCGames SVGSprite colour rotation on 32bit
Zarro Boogs per Child
bugtracker at laptop.org
Tue Feb 5 12:58:08 EST 2008
#6348: OLPCGames SVGSprite colour rotation on 32bit
------------------------+---------------------------------------------------
Reporter: mcfletch | Owner: mcfletch
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: olpc-games | Version: Git as of bug date
Keywords: | Verified: 0
Blocking: | Blockedby:
------------------------+---------------------------------------------------
Somehow the colours displayed via SVGSprite on 32-bit platforms (i.e.
including the XO) are off by 16 bits, that is, instead of ARGB we're
getting GBAR. Works perfectly well on 64-bit machines.
It almost looks like on 32-bit machines we're getting a different format
for the "native" data-type inside the Cairo ImageSurface. This used to
work using get_rgba(). That API was removed in favour of the "native"
format, but there doesn't seem to be a way to check that the format really
is ARGB, the get_format() stuff returns 0, which is the ARGB constant, but
the colours don't seem to be correct.
This has pretty much made SVG sprites useless. Need to fix.
--
Ticket URL: <http://dev.laptop.org/ticket/6348>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list