From 385f11cf3577d72617f2cb1f863d1b80d0b202bf Mon Sep 17 00:00:00 2001 From: Andrew Choi Date: Tue, 28 Jan 2003 17:30:12 +0000 Subject: [PATCH] 2003-01-28 Andrew Choi * macfns.c (x_to_mac_color): Correct the order for parsing the RGB values in old-style RGB specs. --- src/ChangeLog | 5 +++++ src/macfns.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d9cddaa611d..1b4c7807aed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-01-28 Andrew Choi + + * macfns.c (x_to_mac_color): Correct the order for parsing the RGB + values in old-style RGB specs. + 2003-01-27 Juanma Barranquero * w32fns.c (init_external_image_libraries): Try alternate names for the diff --git a/src/macfns.c b/src/macfns.c index 38afebe0c91..7ae8ccb0a06 100644 --- a/src/macfns.c +++ b/src/macfns.c @@ -1837,7 +1837,7 @@ x_to_mac_color (colorname) { unsigned long colorval; int i, pos; - pos = 0; + pos = 16; size /= 3; colorval = 0; @@ -1873,7 +1873,7 @@ x_to_mac_color (colorname) break; } colorval |= (value << pos); - pos += 0x8; + pos -= 8; if (i == 2) { UNBLOCK_INPUT; -- 2.39.5