| Summary: | Missing const specification forces use of const_cast in application code | ||
|---|---|---|---|
| Product: | SDL | Reporter: | esigra |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 1.2 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Attachments: | Patch against SDL-1.2.11 that fixes 2 occurences of the bug for me. | ||
|
Description
esigra
2007-03-26 02:06:05 UTC
Created attachment 203 [details]
Patch against SDL-1.2.11 that fixes 2 occurences of the bug for me.
Fixed in svn revision #3008 for the 1.2 branch and #3009 for the 1.3 branch. Thanks! --ryan. This bug also needs to be fixed for SDL_GetRGB and SDL_GetRGBA (those should not change the format of the surface either). Until this is fixed, I still need to const_cast the format parameter in calls to those functions. This was fixed for SDL 1.2 in revision 4487. This was already fixed for SDL 1.3. Thanks! |