Skip to content
Permalink
Browse files

Eliminate duplicate modes with different refresh rates

  • Loading branch information
slouken committed Feb 1, 2006
1 parent 6b5989a commit e9d9ecfc0e657ce094c953944d810c0512efd4ea
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/video/x11/SDL_x11modes.c
@@ -366,6 +366,13 @@ int X11_GetVideoModes(_THIS)
for ( i=0; i<nmodes; ++i ) {
int w, h;

/* Eliminate duplicate modes with different refresh rates */
if ( 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;

0 comments on commit e9d9ecf

Please sign in to comment.