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 - Wrong information in Documentation SDL_SetTextureColorMod.
Summary: Wrong information in Documentation SDL_SetTextureColorMod.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: website (show other bugs)
Version: 2.0.4
Hardware: All All
: P2 normal
Assignee: Jen Spradlin
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-28 13:10 UTC by Littlefighter19
Modified: 2016-05-13 18:41 UTC (History)
1 user (show)

See Also:


Attachments

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