Revision dd00d051
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/effects/objectchange/ObjectChangeEffectMove.java | ||
---|---|---|
30 | 30 |
{ |
31 | 31 |
public int createEffectsPhase0(int duration) |
32 | 32 |
{ |
33 |
int w = mScreen.getWidth();
|
|
34 |
int h = mScreen.getHeight();
|
|
33 |
int w = mFrame.getWidth();
|
|
34 |
int h = mFrame.getHeight();
|
|
35 | 35 |
int xmove = w/2 + (w<h?w:h)/2; |
36 | 36 |
|
37 | 37 |
mNodeEffectPosition[0] = new int[] {1}; |
... | ... | |
49 | 49 |
|
50 | 50 |
public int createEffectsPhase1(int duration) |
51 | 51 |
{ |
52 |
int w = mScreen.getWidth();
|
|
53 |
int h = mScreen.getHeight();
|
|
52 |
int w = mFrame.getWidth();
|
|
53 |
int h = mFrame.getHeight();
|
|
54 | 54 |
int xmove = w/2 + (w<h?w:h)/2; |
55 | 55 |
|
56 | 56 |
mNodeEffectPosition[1] = new int[] {1}; |
Also available in: Unified diff
Relax objectlib's requirements: it can be displayed not only on top of a DistortedScreen, but any DistortedFramebuffer.