From: Richard Rauch Date: Fri, 31 Oct 2003 06:20:07 +0000 (+0000) Subject: Cleansed fgCloseWindow(): X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=a1cb9feb91b76b1f21030634beae8b93dea8aaa2;p=freeglut Cleansed fgCloseWindow(): * say-nothing-new comments axed. * de-TABbed. * Made the white-space to be consistant. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@276 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 6fc6ade..6125032 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -561,31 +561,19 @@ void fgCloseWindow( SFG_Window* window ) freeglut_assert_ready; #if TARGET_HOST_UNIX_X11 - /* - * As easy as kill bunnies with axes. Destroy the context first: - */ - glXDestroyContext( fgDisplay.Display, window->Window.Context ); - /* - * Then have the window killed: - */ + glXDestroyContext( fgDisplay.Display, window->Window.Context ); XDestroyWindow( fgDisplay.Display, window->Window.Handle ); - - /* - * Finally, flush the rests down the stream - */ XFlush( fgDisplay.Display ); #elif TARGET_HOST_WIN32 - /* - * Send the WM_CLOSE message to the window now - */ - SendMessage( - window->Window.Handle, - WM_CLOSE, - 0, - 0 - ); + + SendMessage( + window->Window.Handle, + WM_CLOSE, + 0, + 0 + ); #endif }