| Summary: | SDL-1.2: image not stretched in X11 (linux). 1.2.13 was fine. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.14 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Ozkan Sezer
2011-11-20 01:19:46 UTC
To be sure, I compiled plain SDL-1.2.13 and 1.2.14 versions myself and verified that 1.2.13 does not have this problem but 1.2.14 indeed does. Therefore this seems like a regression against 1.2.13. OK, after pulling out my hair for hours, I nailed the offending code in my sources: I am (was) doing a qsort() on the list of video modes I get from SDL_ListModes(). After making a copy and sorting the copy instead of the original, things work OK (proper stretching) with SDL >= 1.2.14. Is sorting the original modes list considered harmful? If it is, why did it work with SDL <= 1.2.13 and why did it cause this weird side effect with SDL >= 1.2.14? I'm not sure why the behavior changed, but the list of video modes is definitely supposed to be const. |