mirror of
https://github.com/yawut/SDL.git
synced 2026-09-30 12:16:43 -05:00
Eliminate duplicate modes with different refresh rates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user