This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Patch to w32api/include/wingdi.h (SetPixelFormat)
- From: David Robinow <drobinow at yahoo dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 28 Mar 2002 21:05:15 -0800 (PST)
- Subject: Patch to w32api/include/wingdi.h (SetPixelFormat)
In http://cygwin.com/ml/cygwin/2002-03/msg01545.html
I said,
... I was not able to get fltk-1.0.11 to compile by change HAVE_GL to
1, either.
I have no reason to think any of these problems have anything to do
with cygwin. ...
It turns out I was wrong wrt cygwin. fltk-1.0.11 compiles properly
with the following patch.
2002-03-29 David Robinow <drobinow@yahoo.com>
* include/wingdi.h (SetPixelFormat): Make 3rd parameter const.
This patch was previously suggested by
http://sources.redhat.com/ml/cygwin/2001-05/msg01129.html
The MSDN reference quoted in that mail does not appear to be valid any
more.
This one works
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/ntopnglr_3q5w.asp
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
Index: winsup/w32api/include/wingdi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wingdi.h,v
retrieving revision 1.10
diff -u -p -r1.10 wingdi.h
--- wingdi.h 2002/03/09 09:04:10 1.10
+++ wingdi.h 2002/03/29 04:44:48
@@ -2659,7 +2659,7 @@ int WINAPI SetMetaRgn(HDC);
BOOL WINAPI SetMiterLimit(HDC,FLOAT,PFLOAT);
UINT WINAPI SetPaletteEntries(HPALETTE,UINT,UINT,const PALETTEENTRY*);
COLORREF WINAPI SetPixel(HDC,int,int,COLORREF);
-BOOL WINAPI SetPixelFormat(HDC,int,PIXELFORMATDESCRIPTOR*);
+BOOL WINAPI SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR*);
BOOL WINAPI SetPixelV(HDC,int,int,COLORREF);
int WINAPI SetPolyFillMode(HDC,int);
BOOL WINAPI SetRectRgn(HRGN,int,int,int,int);