]> git.eshelyaron.com Git - emacs.git/commitdiff
2003-01-28 Andrew Choi <akochoi@shaw.ca>
authorAndrew Choi <akochoi@shaw.ca>
Tue, 28 Jan 2003 17:30:12 +0000 (17:30 +0000)
committerAndrew Choi <akochoi@shaw.ca>
Tue, 28 Jan 2003 17:30:12 +0000 (17:30 +0000)
        * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
        values in old-style RGB specs.

src/ChangeLog
src/macfns.c

index d9cddaa611dc6bd3c7523a55ec3112e98e109a22..1b4c7807aedae99c89107640b859cdf562d72a47 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-28  Andrew Choi  <akochoi@shaw.ca>
+
+       * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
+       values in old-style RGB specs.
+
 2003-01-27  Juanma Barranquero  <lektu@terra.es>
 
        * w32fns.c (init_external_image_libraries): Try alternate names for the
index 38afebe0c91ca5185296a593cb87928e091197f6..7ae8ccb0a063abeb6cd245bf82594918dd103178 100644 (file)
@@ -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;