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

Summary: SDL_SetWindowBrightness() doesn't work with Intel driver
Product: SDL Reporter: spaz16
Component: videoAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: All   
OS: Linux   

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!