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 548 - Fix SDL_ListModes() in SDL_compat
Summary: Fix SDL_ListModes() in SDL_compat
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 09:55 UTC by Gwenole Beauchesne
Modified: 2009-12-15 18:14 UTC (History)
0 users

See Also:


Attachments
Fix SDL_ListModes() with NULL format argument (634 bytes, patch)
2008-02-10 09:57 UTC, Gwenole Beauchesne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gwenole Beauchesne 2008-02-10 09:55:38 UTC
Hi, SDL_ListModes()::format can be NULL according to the documentation, and some code. e.g. mine to get the actual display width.
Comment 1 Gwenole Beauchesne 2008-02-10 09:57:59 UTC
Created attachment 249 [details]
Fix SDL_ListModes() with NULL format argument
Comment 2 Sam Lantinga 2008-11-25 11:34:17 UTC
Thank you very much for your patch for SDL 1.3!

Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial
license?
Comment 3 Ryan C. Gordon 2009-10-10 22:47:15 UTC
Tossing this bug to Sam.

--ryan.
Comment 4 Sam Lantinga 2009-12-15 18:14:31 UTC
It looks like this is already fixed in subversion.