Cleansed fgCloseWindow():

* say-nothing-new comments axed.
 * de-TABbed.
 * Made the white-space to be consistant.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@276 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
rkrolib 2003-10-31 06:20:07 +00:00
parent 6674df547f
commit a1c14f4cf5

View File

@ -561,31 +561,19 @@ void fgCloseWindow( SFG_Window* window )
freeglut_assert_ready; freeglut_assert_ready;
#if TARGET_HOST_UNIX_X11 #if TARGET_HOST_UNIX_X11
/*
* As easy as kill bunnies with axes. Destroy the context first:
*/
glXDestroyContext( fgDisplay.Display, window->Window.Context ); glXDestroyContext( fgDisplay.Display, window->Window.Context );
/*
* Then have the window killed:
*/
XDestroyWindow( fgDisplay.Display, window->Window.Handle ); XDestroyWindow( fgDisplay.Display, window->Window.Handle );
/*
* Finally, flush the rests down the stream
*/
XFlush( fgDisplay.Display ); XFlush( fgDisplay.Display );
#elif TARGET_HOST_WIN32 #elif TARGET_HOST_WIN32
/*
* Send the WM_CLOSE message to the window now SendMessage(
*/ window->Window.Handle,
SendMessage( WM_CLOSE,
window->Window.Handle, 0,
WM_CLOSE, 0
0, );
0
);
#endif #endif
} }