changeset 1747:e75d0cbcf3c8

(none)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Apr 2006 17:56:06 +0000
parents a0ddae8b43cf
children 5e86e34453d4
files src/video/x11/SDL_x11modes.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c	Sat Apr 29 17:54:32 2006 +0000
+++ b/src/video/x11/SDL_x11modes.c	Sat Apr 29 17:56:06 2006 +0000
@@ -425,6 +425,7 @@
     }
 
     /* Query the extension version */
+    vm_error = -1;
     if ( !SDL_NAME(XF86VidModeQueryExtension)(SDL_Display, &vm_event, &vm_error) ||
          !SDL_NAME(XF86VidModeQueryVersion)(SDL_Display, major, minor) ) {
         return 0;