Update live wallpaper examples to new api.

This commit is contained in:
Marco Nelissen
2009-11-09 15:45:02 -08:00
parent 2d03b2a5d1
commit 42c35199db
3 changed files with 6 additions and 3 deletions

View File

@@ -123,7 +123,8 @@ public class CubeWallpaper1 extends WallpaperService {
}
@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;
drawFrame();
}

View File

@@ -190,7 +190,8 @@ public class CubeWallpaper2 extends WallpaperService {
}
@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;
drawFrame();
}

View File

@@ -82,7 +82,8 @@ public abstract class RenderScriptWallpaper<T extends RenderScriptScene> extends
}
@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);
}