am 81515abc: am 42c35199: Update live wallpaper examples to new api.

Merge commit '81515abca85e742584db3c7cdacc5b840f0eb650' into eclair-mr2-plus-aosp

* commit '81515abca85e742584db3c7cdacc5b840f0eb650':
  Update live wallpaper examples to new api.
This commit is contained in:
Marco Nelissen
2009-11-09 19:40:25 -08:00
committed by Android Git Automerger
3 changed files with 6 additions and 3 deletions

View File

@@ -123,7 +123,8 @@ public class CubeWallpaper1 extends WallpaperService {
} }
@Override @Override
public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { public void onOffsetsChanged(float xOffset, float yOffset,
float xStep, float yStep, int xPixels, int yPixels) {
mOffset = xOffset; mOffset = xOffset;
drawFrame(); drawFrame();
} }

View File

@@ -190,7 +190,8 @@ public class CubeWallpaper2 extends WallpaperService {
} }
@Override @Override
public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { public void onOffsetsChanged(float xOffset, float yOffset,
float xStep, float yStep, int xPixels, int yPixels) {
mOffset = xOffset; mOffset = xOffset;
drawFrame(); drawFrame();
} }

View File

@@ -82,7 +82,8 @@ public abstract class RenderScriptWallpaper<T extends RenderScriptScene> extends
} }
@Override @Override
public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { public void onOffsetsChanged(float xOffset, float yOffset,
float xStep, float yStep, int xPixels, int yPixels) {
mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels); mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels);
} }