diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-04-14 23:59:53 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-04-14 23:59:53 +0200 |
commit | 83e840d93447367ec1e7c07c2523cbea0115fb10 (patch) | |
tree | 7caa2c74be967088f08d738a20604badd340a277 /src | |
parent | 11d81dc8e0bc03c16e146e1d27883b8d9abdbae9 (diff) | |
download | packages_apps_trebuchet-83e840d93447367ec1e7c07c2523cbea0115fb10.zip packages_apps_trebuchet-83e840d93447367ec1e7c07c2523cbea0115fb10.tar.gz packages_apps_trebuchet-83e840d93447367ec1e7c07c2523cbea0115fb10.tar.bz2 |
Trebuchet: Fix vertical position of wallpaper when mWallpaperHack is activated
Fix vertical aligment of wallpaper when Wallpaper Quick Render setting is activated.
See http://review.cyanogenmod.org/35227
Change-Id: I3b2b7b59ebce995724bcc2fe3f2aa079c7abafee
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 092f5a0..7e330eb 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -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); |