~lbrulet-8/compiz-plugins-main/fix-876591

« back to all changes in this revision

Viewing changes to expo/src/expo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-06-06 16:19:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110606161903-xz6332s4mdh8llxe
Tags: 0.9.4+bzr20110527-0ubuntu1
* New bug fix release:
  - apps started fullscreen in unity can never unfullscreen (LP: #765422)
* debian/patches/00_bzr_fix_centered_expo.patch:
  - removed, applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
835
835
    sTransform.rotate (rotation, 0.0f, 1.0f, 0.0f);
836
836
    sTransform.scale (aspectX, aspectY, 1.0);
837
837
 
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
 
 
843
838
    /* translate expo to center */
844
 
    sTransform.translate (vpSize.x () * sx * -0.5 + xoffset,
845
 
                          vpSize.y () * sy * 0.5 - yoffset, 0.0f);
846
 
    sTransform.scale (xadjs, yadjs, 1.0f);
 
839
    sTransform.translate (vpSize.x () * sx * -0.5,
 
840
                          vpSize.y () * sy * 0.5, 0.0f);
847
841
 
848
842
    if (optionGetDeform () == DeformCurve)
849
843
        sTransform.translate ((vpSize.x () - 1) * sx * 0.5, 0.0, 0.0);