[Scribus] Another endian patch on Mac OSX
Martin Costabel
costabel
Sun Dec 7 00:19:53 CET 2003
On 27/11/03 22:51, Martin Costabel wrote:
> - The color endian problem for the screen display is not completely
> solved: Text characters still have an outer contour in the wrong color.
> Here is a picture that shows this phenomenon
> http://perso.wanadoo.fr/costabel/YellowText.gif
> The print preview is OK.
The same problem shows up for lines. For thick lines, only the interior
has the right color, the boundary contour has the wrong one.
I have found a fix for this that works for me, and I added it to the
Fink Scribus package description (scribus-1.1.3-2 on
10.2-gcc3.3/unstable and scribus-1.1.3-12 on 10.3/unstable). Here is the
patch:
--- /Cvs/Scribus/scribus/art_rgb_svp.c Wed Oct 1 22:39:09 2003
+++ scribus-1.1.3/scribus/art_rgb_svp.c Sat Dec 6 21:33:46 2003
@@ -427,10 +427,16 @@
int i;
int a, da;
+#ifdef WORDS_BIGENDIAN
+ r = (rgb >> 8) & 0xff;
+ g = (rgb >> 16) & 0xff;
+ b = (rgb >> 24) & 0xff;
+#else
r = (rgb >> 16) & 0xff;
g = (rgb >> 8) & 0xff;
b = rgb & 0xff;
+#endif
data.r = r;
data.g = g;
data.b = b;
--
Martin
More information about the scribus
mailing list