Merge lp:~mc-return/compiz/compiz.merge-fix1070233-resize-info-gradient-color-settings-ignored into lp:compiz/0.9.9
Proposed by
MC Return
Status: | Merged |
---|---|
Approved by: | Martin Mrazik |
Approved revision: | 3451 |
Merged at revision: | 3453 |
Proposed branch: | lp:~mc-return/compiz/compiz.merge-fix1070233-resize-info-gradient-color-settings-ignored |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
82 lines (+15/-15) 2 files modified
plugins/resizeinfo/resizeinfo.xml.in (+7/-7) plugins/resizeinfo/src/resizeinfo.cpp (+8/-8) |
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-fix1070233-resize-info-gradient-color-settings-ignored |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Daniel van Vugt | Approve | ||
MC Return | Needs Resubmitting | ||
Sam Spilsbury | Approve | ||
Review via email: mp+132489@code.launchpad.net |
Commit message
Resizeinfo Plug-in:
Fixed options to change Gradient Color 2 and Gradient Color 3 having no effect and enabled possibility for a gradient background.
(LP: #1070233)
Description of the change
As requested by Daniel, I am separating the fixes for the resizeinfo problems.
This branch just fixes CCSM resizeinfo plug-in's gradient color settings being ignored.
To post a comment you must log in.
Oh, blah, the original author seems to have use GradientN for everything, which makes the code annoying to review:
8 - r = is->optionGetGr adient1Red () / (float)0xffff; adient1Green () / (float)0xffff; adient1Blue () / (float)0xffff; adient1Alpha () / (float)0xffff; adient2Red () / (float)0xffff; adient2Green () / (float)0xffff; adient2Blue () / (float)0xffff; adient2Alpha () / (float)0xffff;
9 - g = is->optionGetGr
10 - b = is->optionGetGr
11 - a = is->optionGetGr
12 + r = is->optionGetGr
13 + g = is->optionGetGr
14 + b = is->optionGetGr
15 + a = is->optionGetGr
My advice earlier about using static_cast and numeric_limits still applies here.
Do you think you could also change the gradient_n names in the xml file to something more sensible while you're at it too?