projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set the current window before calling the window closure callback.
[freeglut]
/
freeglut-1.3
/
freeglut_init.c
diff --git
a/freeglut-1.3/freeglut_init.c
b/freeglut-1.3/freeglut_init.c
index
7fa7afa
..
40cc2a2
100644
(file)
--- a/
freeglut-1.3/freeglut_init.c
+++ b/
freeglut-1.3/freeglut_init.c
@@
-183,7
+183,10
@@
void fgInitialize( const char* displayName )
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = fgDisplay.Instance;
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;
wc.hCursor = LoadCursor( NULL, IDC_ARROW );
wc.hbrBackground = NULL;
wc.lpszMenuName = NULL;