Merge lp:~fboucault/unity-2d/fix_background_color into lp:unity-2d/0.4
Proposed by
Florian Boucault
Status: | Merged |
---|---|
Approved by: | Ugo Riboni |
Approved revision: | 381 |
Merged at revision: | 390 |
Proposed branch: | lp:~fboucault/unity-2d/fix_background_color |
Merge into: | lp:unity-2d/0.4 |
Diff against target: |
74 lines (+6/-8) 3 files modified
places/GnomeBackground.qml (+3/-3) places/UnityPlaces/blendedimageprovider.cpp (+0/-2) spread/GnomeBackground.qml (+3/-3) |
To merge this branch: | bzr merge lp:~fboucault/unity-2d/fix_background_color |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ugo Riboni (community) | Approve | ||
Olivier Tilloy | Pending | ||
Review via email: mp+47227@code.launchpad.net |
Description of the change
GnomeBackground: fixed 'wallpaper' and 'scaled' modes (cf. launchpad bug #689531).
'wallpaper' was broken because the sourceSize was set and taken into account even
if the image's size was smaller (http://
Thanks to the newly introduced CacheEffect, there is no need to prescale the Image
anymore therefore using sourceSize can be avoided. Unfortunately BlendedImagePro
was failing if sourceSize was unset. This is now fixed.
'scaled' was broken because the background color was invisible whenever the image
was visible. This optimization is no longer necessary thanks to the CacheEffect.
To post a comment you must log in.
Florian, please hold on on this merge for a bit. I noticed a few issues with CacheEffect after i merged it from trunk into the workspaces switcher branch.
It seems to not work very well while the size is animated. It leaves "trails" of the previous size behind (as if the rendering didn't clear the previous frame before drawing the new one)