From: Fay J. F C. AAC/W. <joh...@eg...> - 2003-05-27 23:04:51
|
Well, I tried it and it didn't make any difference. I still get a Windows type of logo for my "freeglut" demo programs and an OpenGL logo for my GLUT demo programs. I may not have had that particular "GLUT_ICON" defined properly for my (Windows 2000) system. But the change seems innocuous enough--and it had no harmful effects for me--that I would say let's put it in. John F. Fay joh...@eg... -----Original Message----- From: Eero Pajarre [mailto:epa...@ko...] Sent: Monday, May 26, 2003 2:56 PM To: fre...@li... Subject: [Freeglut-developer] glut compatible Windows icon The attached patch seems to make freeglut compatible with glut regarding the window icon on Windows (XP?). That is, if there exists a icon which is stored as the "GLUT_ICON" resource it will be used. Once again I hope that resident Windows gurus will test this... Eero Index: freeglut_init.c =================================================================== RCS file: /cvsroot/freeglut/freeglut/freeglut/freeglut-1.3/freeglut_init.c,v retrieving revision 1.7 diff -u -r1.7 freeglut_init.c --- freeglut_init.c 7 Feb 2003 21:30:11 -0000 1.7 +++ freeglut_init.c 26 May 2003 19:50:31 -0000 @@ -183,7 +183,9 @@ wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = fgDisplay.Instance; - wc.hIcon = LoadIcon( NULL, IDI_WINLOGO ); + wc.hIcon = LoadIcon( fgDisplay.Instance, "GLUT_ICON" ); + if (!wc.hIcon) + wc.hIcon = LoadIcon( NULL, IDI_WINLOGO ); wc.hCursor = LoadCursor( NULL, IDC_ARROW ); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ Freeglut-developer mailing list Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |