SPi wrote:Hi!
I am having the same problem as the OP.
Since the thread has seen a few days, I wondered if there is a built-in solution yet, which I did not find?
Or do you still need to alter the engine?
onSurfaceChanged() is available now for liveWallpapers, but:
camera.setSurfaceSize does not seem to have any effect?
same as engine.setSurfaceSize
scene.scale does not scale the parallax background
thanks
Good question, still looking for a answer to this.
No one solved it? or no one share it?
PS: After many hours of testing, I found a solution (the best I could get).
@Override
public void onSurfaceChanged(int pWidth, int pHeight) {
Log.d("LWP", "onSurfaceChanged(" + pWidth + "," + pHeight + ")");
// ...
super.onSurfaceChanged(pWidth, pHeight);
this.mEngine.getCamera().set(0, 0, pWidth, pHeight); // trick here
}
Don't have any ideia if the set() should come after or before super call.
Seems to work fine in both way.
[]'s