# HG changeset patch # User Sam Lantinga # Date 1146333366 0 # Node ID e75d0cbcf3c8a80e6fffd39c41130af34a1b056a # Parent a0ddae8b43cfbb41038e2eca90c87d876471c7eb diff -r a0ddae8b43cf -r e75d0cbcf3c8 src/video/x11/SDL_x11modes.c --- 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;