projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing the "fgDeinitialize" call properly per e-mail from John Tsiombikas dated 12...
[freeglut]
/
src
/
freeglut_structure.c
diff --git
a/src/freeglut_structure.c
b/src/freeglut_structure.c
index
e092429
..
c5a2d73
100644
(file)
--- a/
src/freeglut_structure.c
+++ b/
src/freeglut_structure.c
@@
-79,7
+79,9
@@
SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
/* Initialize the object properties */
window->ID = ++fgStructure.WindowID;
/* Initialize the object properties */
window->ID = ++fgStructure.WindowID;
+#if TARGET_HOST_POSIX_X11
window->State.OldHeight = window->State.OldWidth = -1;
window->State.OldHeight = window->State.OldWidth = -1;
+#endif
fgListInit( &window->Children );
if( parent )
fgListInit( &window->Children );
if( parent )
@@
-114,7
+116,7
@@
SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
*/
SFG_Menu* fgCreateMenu( FGCBMenu menuCallback )
{
*/
SFG_Menu* fgCreateMenu( FGCBMenu menuCallback )
{
- int x = 100, y = 100, w = 100, h = 100;
+ int x = 100, y = 100, w = 1, h = 1;
SFG_Window *current_window = fgStructure.CurrentWindow;
/* Have the menu object created */
SFG_Window *current_window = fgStructure.CurrentWindow;
/* Have the menu object created */