Merge lp://qastaging/~mc-return/compiz/compiz.merge-fix1162484-original-cube-top-and-bottom-caps-not-deformed into lp://qastaging/compiz/0.9.10
Status: | Merged |
---|---|
Approved by: | Sam Spilsbury |
Approved revision: | 3648 |
Merged at revision: | 3647 |
Proposed branch: | lp://qastaging/~mc-return/compiz/compiz.merge-fix1162484-original-cube-top-and-bottom-caps-not-deformed |
Merge into: | lp://qastaging/compiz/0.9.10 |
Diff against target: |
445 lines (+85/-98) 1 file modified
plugins/cubeaddon/src/cubeaddon.cpp (+85/-98) |
To merge this branch: | bzr merge lp://qastaging/~mc-return/compiz/compiz.merge-fix1162484-original-cube-top-and-bottom-caps-not-deformed |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sam Spilsbury | Approve | ||
Daniel van Vugt | Pending | ||
MC Return | Pending | ||
Review via email:
|
This proposal supersedes a proposal from 2013-04-02.
Commit message
Cube-addon (Cube Reflection and Deformation):
If the user disables "Draw top face"/"Draw bottom face"
we do not want to draw anything (LP: #1162484).
The original, non-deformed caps will only work for the
non-deformed cube, so we can just use the original function
in that case.
We need to clear the texture if no texture files are
specified in "Image files", otherwise the old texture
would still be drawn, even if all image files are
removed (LP: #1162711).
Now we will default back and use the cube cap
colors and opacities defined in the "Desktop Cube" plugin
(if "Draw top/bottom face" are enabled only, see above).
This way the user can choose between (for top/bottom):
1. Do not draw a cube cap face at all
("Draw top/bottom face" option disabled)
2. Use color and opacity specified in "Desktop Cube"
(empty images list)
3. Use a texture for the cap
(image is in the list, which is default)
Removed redundant mCurrent = mCurrent % mFiles.size ();
calculation, this has already been done:
cap->mCurrent = (cap->mCurrent + change + count) % count;
count and change both need to be != 0 for mCurrent to change.
Fixed indentation, removed redundant brackets and newlines,
declaration and assignment of local variables in one line,
if possible, minor cleanup.
Description of the change
Note:
Bug #1162740: 'Key-combinations to change top or bottom cap textures do not work' (also regarding the caps) is still open, so the caps functionality is just almost perfect... :(
I am hunting this bug as well, but am currently a bit stuck with it (I added details to
the bug report already).
Bug #1163880: 'Deformation fails during time of window animation' is also still open
Please re-target this for lp:compiz/0.9.10