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 - SDL_ListModes() doesn't return a sorted list on Win98 and possibly others
Summary: SDL_ListModes() doesn't return a sorted list on Win98 and possibly others
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.9
Hardware: x86 Windows (95/98/ME)
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-06 21:23 UTC by kevinmb500
Modified: 2006-05-07 00:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!