projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked the X11 part of glutSetCursor, fixing bug #764187 (Variable mouse
[freeglut]
/
src
/
freeglut_init.c
diff --git
a/src/freeglut_init.c
b/src/freeglut_init.c
index
6b6f3d5
..
d5a5aa6
100644
(file)
--- a/
src/freeglut_init.c
+++ b/
src/freeglut_init.c
@@
-25,10
+25,6
@@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
#include <GL/freeglut.h>
#include "freeglut_internal.h"
@@
-183,7
+179,7
@@
static void fghInitialize( const char* displayName )
/* Register the window class */
atom = RegisterClass( &wc );
/* Register the window class */
atom = RegisterClass( &wc );
- assert( atom );
+ FREEGLUT_INTERNAL_ERROR_EXIT ( atom, "Window Class Not Registered", "fghInitialize" );
}
/* The screen dimensions can be obtained via GetSystemMetrics() calls */
}
/* The screen dimensions can be obtained via GetSystemMetrics() calls */
@@
-219,8
+215,6
@@
void fgDeinitialize( void )
return;
}
return;
}
- /* fgState.Initialised = GL_FALSE; */
-
/* If there was a menu created, destroy the rendering context */
if( fgStructure.MenuContext )
{
/* If there was a menu created, destroy the rendering context */
if( fgStructure.MenuContext )
{
@@
-230,7
+224,7
@@
void fgDeinitialize( void )
fgDestroyStructure( );
fgDestroyStructure( );
- while( ( timer = fgState.Timers.First ) )
+ while( ( timer = fgState.Timers.First) )
{
fgListRemove( &fgState.Timers, &timer->Node );
free( timer );
{
fgListRemove( &fgState.Timers, &timer->Node );
free( timer );
@@
-311,6
+305,8
@@
void fgDeinitialize( void )
XCloseDisplay( fgDisplay.Display );
#endif
XCloseDisplay( fgDisplay.Display );
#endif
+
+ fgState.Initialised = GL_FALSE;
}
/*
}
/*
@@
-618,7
+614,7
@@
void FGAPIENTRY glutInit( int* pargc, char** argv )
* size.
*/
* size.
*/
- if( geometry )
+ if (geometry )
{
unsigned int parsedWidth, parsedHeight;
int mask = XParseGeometry( geometry,
{
unsigned int parsedWidth, parsedHeight;
int mask = XParseGeometry( geometry,