projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added some error-checking (particularly w.r.t. strdup()).
[freeglut]
/
src
/
freeglut_gamemode.c
diff --git
a/src/freeglut_gamemode.c
b/src/freeglut_gamemode.c
index
29a2947
..
9df2835
100644
(file)
--- a/
src/freeglut_gamemode.c
+++ b/
src/freeglut_gamemode.c
@@
-132,6
+132,8
@@
void fghRememberState( void )
void fghRestoreState( void )
{
#if TARGET_HOST_UNIX_X11
void fghRestoreState( void )
{
#if TARGET_HOST_UNIX_X11
+
+# ifdef X_XF86VidModeGetAllModeLines
/*
* Restore the remembered pointer position:
*/
/*
* Restore the remembered pointer position:
*/
@@
-143,7
+145,6
@@
void fghRestoreState( void )
/*
* This highly depends on the XFree86 extensions, not approved as X Consortium standards
*/
/*
* This highly depends on the XFree86 extensions, not approved as X Consortium standards
*/
-# ifdef X_XF86VidModeGetAllModeLines
if (fgDisplay.DisplayModeValid)
{
if (fgDisplay.DisplayModeValid)
{