Eero Pajarre's icon code.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@61 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dheyse 2003-06-12 18:54:11 +00:00
parent c543d287c1
commit ba2efda662

View File

@ -183,7 +183,10 @@ void fgInitialize( const char* displayName )
wc.cbClsExtra = 0; wc.cbClsExtra = 0;
wc.cbWndExtra = 0; wc.cbWndExtra = 0;
wc.hInstance = fgDisplay.Instance; 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.hCursor = LoadCursor( NULL, IDC_ARROW );
wc.hbrBackground = NULL; wc.hbrBackground = NULL;
wc.lpszMenuName = NULL; wc.lpszMenuName = NULL;