# HG changeset patch # User Sam Lantinga # Date 1138786122 0 # Node ID f95502c6fc72afb437c7f1a27970eae186c131b3 # Parent 6c7b692182760b3bc7876063ac592ae57345845a Eliminate duplicate modes with different refresh rates diff -r 6c7b69218276 -r f95502c6fc72 src/video/x11/SDL_x11modes.c --- a/src/video/x11/SDL_x11modes.c Wed Feb 01 09:01:12 2006 +0000 +++ b/src/video/x11/SDL_x11modes.c Wed Feb 01 09:28:42 2006 +0000 @@ -366,6 +366,13 @@ for ( i=0; i 0 && + modes[i]->hdisplay == modes[i-1]->hdisplay && + modes[i]->vdisplay == modes[i-1]->vdisplay ) { + continue; + } + /* Check to see if we should add the screen size (Xinerama) */ w = modes[i]->hdisplay; h = modes[i]->vdisplay;