Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Eliminate duplicate modes with different refresh rates
- Loading branch information
Showing
with
7 additions
and
0 deletions.
-
+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; |
|
|