Fix Declaration of SetDIBColorTable

Robert Shearman rob at codeweavers.com
Fri Oct 15 08:26:13 CDT 2004


Changelog:
The "colors" parameter of SetDIBColorTable should be CONST.
-------------- next part --------------
Index: wine/include/wingdi.h
===================================================================
RCS file: /home/wine/wine/include/wingdi.h,v
retrieving revision 1.113
diff -u -p -r1.113 wingdi.h
--- wine/include/wingdi.h	20 Sep 2004 19:13:16 -0000	1.113
+++ wine/include/wingdi.h	15 Oct 2004 13:25:11 -0000
@@ -3517,7 +3517,7 @@ HCOLORSPACE WINAPI SetColorSpace(HDC,HCO
 BOOL      WINAPI SetDeviceGammaRamp(HDC,LPVOID);
 COLORREF  WINAPI SetDCBrushColor(HDC,COLORREF);
 COLORREF  WINAPI SetDCPenColor(HDC, COLORREF);
-UINT      WINAPI SetDIBColorTable(HDC,UINT,UINT,RGBQUAD*);
+UINT      WINAPI SetDIBColorTable(HDC,UINT,UINT,CONST RGBQUAD*);
 INT       WINAPI SetDIBits(HDC,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
 INT       WINAPI SetDIBitsToDevice(HDC,INT,INT,DWORD,DWORD,INT,
                          INT,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
Index: wine/dlls/gdi/dib.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/dib.c,v
retrieving revision 1.5
diff -u -p -r1.5 dib.c
--- wine/dlls/gdi/dib.c	20 Sep 2004 21:45:00 -0000	1.5
+++ wine/dlls/gdi/dib.c	15 Oct 2004 13:25:11 -0000
@@ -308,7 +308,7 @@ INT WINAPI SetDIBitsToDevice(HDC hdc, IN
 /***********************************************************************
  *           SetDIBColorTable    (GDI32.@)
  */
-UINT WINAPI SetDIBColorTable( HDC hdc, UINT startpos, UINT entries, RGBQUAD *colors )
+UINT WINAPI SetDIBColorTable( HDC hdc, UINT startpos, UINT entries, CONST RGBQUAD *colors )
 {
     DC * dc;
     UINT result = 0;


More information about the wine-patches mailing list