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 3298

Summary: Wrong information in Documentation SDL_SetTextureColorMod.
Product: SDL Reporter: Littlefighter19
Component: websiteAssignee: Jen Spradlin <jspradlin>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann
Version: 2.0.4   
Hardware: All   
OS: All   

Description Littlefighter19 2016-03-28 13:10:17 UTC
In the documentation it said SDL_SetTextureColorMod would return a negative value, if an error occurs, or if color modulation is not supported.
However it will most often return 0 if modulation is not supported.
Comment 1 Philipp Wiesemann 2016-04-01 19:36:46 UTC
The implementation might be incorrect on some platforms with the documentation actually being correct. On which platforms does the function return 0 although modulation is not supported?

It should already be fixed for PSP here:
https://hg.libsdl.org/SDL/rev/c2ef15299a2e
Comment 2 Littlefighter19 2016-05-13 18:41:11 UTC
I looked up other implementations as well, but I mainly looked at the PSP one, so yeah that is fixed now.