Reconcile with ics-factoryrom-release
Change-Id: I1510798b512a34be4947b727df3146ad9f6a31ba
diff --git a/src/com/android/wallpaper/nexus/NexusRS.java b/src/com/android/wallpaper/nexus/NexusRS.java
index c16ea69..20b7dd3 100644
--- a/src/com/android/wallpaper/nexus/NexusRS.java
+++ b/src/com/android/wallpaper/nexus/NexusRS.java
@@ -159,11 +159,9 @@
public Bundle onCommand(String action, int x, int y, int z, Bundle extras,
boolean resultRequested) {
- final int dw = mWidth;
- final int bw = 960; // XXX: hardcoded width of background texture
if (mWidth < mHeight) {
// nexus.rs ignores the xOffset when rotated; we shall endeavor to do so as well
- x = (int) (x + mXOffset * (bw-dw));
+ x = (int) (x + mXOffset * mWidth);
}
// android.util.Log.d("NexusRS", String.format(