Merge lp:~unity-team/compiz/plugins-main-trunk.fixes-2011-03-04 into lp:~unity-team/compiz/plugins-main-trunk

Proposed by David Barth
Status: Merged
Merged at revision: 4
Proposed branch: lp:~unity-team/compiz/plugins-main-trunk.fixes-2011-03-04
Merge into: lp:~unity-team/compiz/plugins-main-trunk
Diff against target: 53 lines (+22/-2)
2 files modified
expo/expo.xml.in (+12/-0)
expo/src/expo.cpp (+10/-2)
To merge this branch: bzr merge lp:~unity-team/compiz/plugins-main-trunk.fixes-2011-03-04
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+56919@code.launchpad.net

This proposal supersedes a proposal from 2011-04-08.

Description of the change

Allows expo to match the visual design better

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote : Posted in a previous version of this proposal

The diff has conflicts, did you propose to the right branch?

It seems an UI change, that will be nice that you do the paper work here: https://wiki.ubuntu.com/FreezeExceptionProcess#UserInterfaceFreeze%20Exceptions

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

You're right, somehow it ended up on lp:compiz again :/

On Fri, Apr 8, 2011 at 4:22 PM, Didier Roche <email address hidden> wrote:
> Review: Needs Fixing
> The diff has conflicts, did you propose to the right branch?
>
> It seems an UI change, that will be nice that you do the paper work here: https://wiki.ubuntu.com/FreezeExceptionProcess#UserInterfaceFreeze%20Exceptions
> --
> https://code.launchpad.net/~unity-team/compiz/plugins-main-trunk.fixes-2011-03-04/+merge/56892
> Your team Unity Team is subscribed to branch lp:~unity-team/compiz/trunk.
>

--
Sam Spilsbury

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

You're right, somehow it ended up on lp:compiz again :/

On Fri, Apr 8, 2011 at 4:22 PM, Didier Roche <email address hidden> wrote:
> Review: Needs Fixing
> The diff has conflicts, did you propose to the right branch?
>
> It seems an UI change, that will be nice that you do the paper work here: https://wiki.ubuntu.com/FreezeExceptionProcess#UserInterfaceFreeze%20Exceptions
> --
> https://code.launchpad.net/~unity-team/compiz/plugins-main-trunk.fixes-2011-03-04/+merge/56892
> Your team Unity Team is subscribed to branch lp:~unity-team/compiz/trunk.
>

--
Sam Spilsbury

Revision history for this message
David Barth (dbarth) wrote :

I've re-proposed the patch to the correct branch: lp:~unity-team/compiz/plugins-main-trunk

5. By Sam Spilsbury

Much better implementation. Default should be X Offset: 64, Y Offset: 24

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

+1 looks good!

A bug should be opened and treated for the UI freeze.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'expo/expo.xml.in'
--- expo/expo.xml.in 2011-03-29 16:36:40 +0000
+++ expo/expo.xml.in 2011-04-08 11:34:30 +0000
@@ -131,6 +131,18 @@
131 <_name>Curve</_name>131 <_name>Curve</_name>
132 </desc>132 </desc>
133 </option>133 </option>
134 <option name="x_offset" type="int">
135 <_short>X Space</_short>
136 <_long> Left Side screen space of expo in pixels</_long>
137 <min>-1680</min>
138 <max>1680</max>
139 </option>
140 <option name="y_offset" type="int">
141 <_short>Y Space</_short>
142 <_long> Top Side screen space of expo in pixels</_long>
143 <min>-100</min>
144 <max>100</max>
145 </option>
134 <option name="distance" type="float">146 <option name="distance" type="float">
135 <_short>Distance</_short>147 <_short>Distance</_short>
136 <_long>Distance of the expo wall</_long>148 <_long>Distance of the expo wall</_long>
137149
=== modified file 'expo/src/expo.cpp'
--- expo/src/expo.cpp 2011-04-06 17:52:52 +0000
+++ expo/src/expo.cpp 2011-04-08 11:34:30 +0000
@@ -805,6 +805,8 @@
805805
806 sTransform.scale (oScale, oScale, 1.0);806 sTransform.scale (oScale, oScale, 1.0);
807807
808 //fprintf (stderr, "cam is %f %f %f\n", cam[GLVector::x], cam[GLVector::y], cam[GLVector::z]);
809
808 /* zoom out */810 /* zoom out */
809 oScale = DEFAULT_Z_CAMERA / (cam[GLVector::z] + DEFAULT_Z_CAMERA);811 oScale = DEFAULT_Z_CAMERA / (cam[GLVector::z] + DEFAULT_Z_CAMERA);
810 sTransform.scale (oScale, oScale, oScale);812 sTransform.scale (oScale, oScale, oScale);
@@ -833,9 +835,15 @@
833 sTransform.rotate (rotation, 0.0f, 1.0f, 0.0f);835 sTransform.rotate (rotation, 0.0f, 1.0f, 0.0f);
834 sTransform.scale (aspectX, aspectY, 1.0);836 sTransform.scale (aspectX, aspectY, 1.0);
835837
838 float xoffset = ((vpSize.x () * sx) / ((float) screen->width ()) * optionGetXOffset ()) * sigmoidProgress (expoCam);
839 float yoffset = ((vpSize.y () * sy) / ((float) screen->height ()) * optionGetYOffset ()) * sigmoidProgress (expoCam);
840 float xadjs = 1.0f - ((float) optionGetXOffset () / (float) screen->width ()) * sigmoidProgress (expoCam);
841 float yadjs = 1.0f - ((float) optionGetYOffset () / (float) screen->height ()) * sigmoidProgress (expoCam);
842
836 /* translate expo to center */843 /* translate expo to center */
837 sTransform.translate (vpSize.x () * sx * -0.5,844 sTransform.translate (vpSize.x () * sx * -0.5 + xoffset,
838 vpSize.y () * sy * 0.5, 0.0f);845 vpSize.y () * sy * 0.5 - yoffset, 0.0f);
846 sTransform.scale (xadjs, yadjs, 1.0f);
839847
840 if (optionGetDeform () == DeformCurve)848 if (optionGetDeform () == DeformCurve)
841 sTransform.translate ((vpSize.x () - 1) * sx * 0.5, 0.0, 0.0);849 sTransform.translate ((vpSize.x () - 1) * sx * 0.5, 0.0, 0.0);

Subscribers

People subscribed via source and target branches

to all changes: