fixed vertical parallax

This commit is contained in:
Michael Jurka
2011-01-14 16:02:32 -08:00
parent 13a781168f
commit 93a6b4e8a2
+1 -1
View File
@@ -616,7 +616,7 @@ public class Workspace extends SmoothPagedView
Display display = mLauncher.getWindowManager().getDefaultDisplay();
int wallpaperTravelHeight = (int) (display.getHeight() *
wallpaperTravelToScreenHeightRatio(display.getWidth(), display.getHeight()));
float offsetFromCenter = (wallpaperTravelHeight / mWallpaperHeight) / 2f;
float offsetFromCenter = (wallpaperTravelHeight / (float) mWallpaperHeight) / 2f;
switch (offsetPosition) {
case TOP:
offset = 0.5f - offsetFromCenter;