diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Workspace.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index ca6cc2c0b..7e330eb3b 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -1675,7 +1675,7 @@ public class Workspace extends PagedView cl.setCameraDistance(mDensity * mCameraDistance); cl.setTranslationX(cl.getMeasuredWidth() * scrollProgress); cl.setPivotX(left ? 0f : cl.getMeasuredWidth()); - cl.setPivotY(0f); + cl.setPivotY(cl.getMeasuredHeight() / 2); cl.setRotationY(rotation); if (mFadeInAdjacentScreens && !isSmall()) { @@ -1864,7 +1864,7 @@ public class Workspace extends PagedView // Wallpaper is smaller than screen y += (height - wallpaperHeight) / 2; } else { - y -= (wallpaperHeight - (height + mWallpaperOffsets[1])) / 2; + y -= mWallpaperScrollY * (wallpaperHeight - (height + mWallpaperOffsets[1])) + mWallpaperOffsets[1]; } canvas.drawBitmap(mWallpaperBitmap, x, y, mPaint); |