comparison src/video/x11/SDL_x11modes.c @ 1771:8d3ca155c396

Fixed bug #217 Sort the DirectX video modes largest to smallest
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 May 2006 04:02:48 +0000
parents 814f9f2c7a33
children 0e44c6f90b95
comparison
equal deleted inserted replaced
1770:1632155c67e5 1771:8d3ca155c396
615 SDL_modelist[i]->w = sizes[i].width; 615 SDL_modelist[i]->w = sizes[i].width;
616 SDL_modelist[i]->h = sizes[i].height; 616 SDL_modelist[i]->h = sizes[i].height;
617 617
618 } 618 }
619 /* sort the mode list descending as SDL expects */ 619 /* sort the mode list descending as SDL expects */
620 qsort(SDL_modelist, nsizes, sizeof *SDL_modelist, cmpmodelist); 620 SDL_qsort(SDL_modelist, nsizes, sizeof *SDL_modelist, cmpmodelist);
621 SDL_modelist[i] = NULL; /* terminator */ 621 SDL_modelist[i] = NULL; /* terminator */
622 622
623 use_xrandr = xrandr_major * 100 + xrandr_minor; 623 use_xrandr = xrandr_major * 100 + xrandr_minor;
624 saved_size_id = XRRConfigCurrentConfiguration(screen_config, &saved_rotation); 624 saved_size_id = XRRConfigCurrentConfiguration(screen_config, &saved_rotation);
625 } 625 }