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 2889 - SDL_SetWindowBrightness() doesn't work with Intel driver
Summary: SDL_SetWindowBrightness() doesn't work with Intel driver
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 10:56 UTC by spaz16
Modified: 2017-08-13 03:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spaz16 2015-02-24 10:56:53 UTC
XStoreColors() doesn't work on Intel drivers (and maybe on some other open source drivers), but this works e.g. on nVidia proprietary drivers. I recommend to use XF86VidModeSetGamma() when XStoreColors() doesn't work.
The second thing is that SDL doesn't check XStoreColors() return code - it should return the error value when XStoreColors() fail.
Comment 1 Sam Lantinga 2017-08-13 03:35:48 UTC
Can you provide a tested patch? I don't have a setup to test this here.

Thanks!