Other typos in CMYK conversions
Vincent Béron
vberon at mecano.gme.usherb.ca
Sun Sep 15 22:21:46 CDT 2002
Reading Juraj's patch, saw this...
Changelog:
Fixed typo in wingdi.h which prevented correct compilation of code
using the Get{C,M,Y}Value macros.
Vincent
-------------- next part --------------
Index: include/wingdi.h
===================================================================
RCS file: /home/wine/wine/include/wingdi.h,v
retrieving revision 1.75
diff -u -r1.75 wingdi.h
--- include/wingdi.h 4 Sep 2002 18:47:32 -0000 1.75
+++ include/wingdi.h 16 Sep 2002 03:18:56 -0000
@@ -423,9 +423,9 @@
#define GetBValue(rgb) (((rgb) >> 16) & 0xff)
#define GetKValue(cmyk) ((BYTE) (cmyk) )
-#define GetYValue(cmyk) ((BYTE) ((cymk) >> 8))
-#define GetMValue(cmyk) ((BYTE) ((cymk) >> 16))
-#define GetCValue(cmyk) ((BYTE) ((cymk) >> 24))
+#define GetYValue(cmyk) ((BYTE) ((cmyk) >> 8))
+#define GetMValue(cmyk) ((BYTE) ((cmyk) >> 16))
+#define GetCValue(cmyk) ((BYTE) ((cmyk) >> 24))
#define CMYK(c,m,y,k) ((COLOREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24)))
More information about the wine-patches
mailing list