We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 217

Summary: SDL_ListModes() doesn't return a sorted list on Win98 and possibly others
Product: SDL Reporter: kevinmb500
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: 1.2.9   
Hardware: x86   
OS: Windows (95/98/ME)   

Description kevinmb500 2006-05-06 21:23:23 UTC
On Windows 98SE running under Qemu, the mode list isn't sorted biggest to smallest. Under X11, it is fine. I have a program that picks the first one and I noticed that it picked 320x240. IIRC, the snippet above was sorted reverse. Perhaps a quick qsort should be added to the general SDL_?ListModes function so that other drivers that may suffer from this problem will also be fixed?
Comment 1 Sam Lantinga 2006-05-07 00:02:47 UTC
This should be fixed in subversion, thanks!