comparison src/video/x11/SDL_x11modes.c @ 4313:8ec3036098df SDL-1.2

Adapted from Debian patch: 320_activate_xrandr_on_default.diff
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 10:14:01 +0000
parents 915406c331dc
children 34a0a589b9c4
comparison
equal deleted inserted replaced
4312:f2f8525e60c2 4313:8ec3036098df
419 env = getenv("SDL_VIDEO_X11_XRANDR"); 419 env = getenv("SDL_VIDEO_X11_XRANDR");
420 if ( env && !SDL_atoi(env) ) { 420 if ( env && !SDL_atoi(env) ) {
421 return 0; 421 return 0;
422 } 422 }
423 423
424 /* This defaults off now, due to KDE window maximize problems */ 424 /* This used to default off, due to KDE window maximize problems */
425 if ( !env ) { 425 /* Reactivated since I haven't encountered such problems with KDE, but if
426 one does encounter such problems he/she can just set
427 SDL_VIDEO_X11_XRANDR to 0
428 Closes Debian bug: #450689
429 */
430 /* if ( !env ) {
426 return 0; 431 return 0;
427 } 432 }
428 433 */
429 if ( !SDL_X11_HAVE_XRANDR ) { 434 if ( !SDL_X11_HAVE_XRANDR ) {
430 return 0; 435 return 0;
431 } 436 }
432 437
433 /* Query the extension version */ 438 /* Query the extension version */