Eero Pajarre's icon code.
authorDon Heyse <dheyse@hotmail.com>
Thu, 12 Jun 2003 18:54:11 +0000 (18:54 +0000)
committerDon Heyse <dheyse@hotmail.com>
Thu, 12 Jun 2003 18:54:11 +0000 (18:54 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@61 7f0cb862-5218-0410-a997-914c9d46530a

freeglut-1.3/freeglut_init.c

index 7fa7afa..40cc2a2 100644 (file)
@@ -183,7 +183,10 @@ void fgInitialize( const char* displayName )
         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;