Revision 642d9162
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java | ||
---|---|---|
124 | 124 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
125 | 125 |
{ |
126 | 126 |
final float Q = 0.3f; |
127 |
final float scale = width<height ? Q*width : Q*height; |
|
127 | 128 |
|
128 |
if( width<height ) mScale.set( Q*width, Q*width, 1 ); |
|
129 |
else mScale.set( Q*height, Q*height, 1 ); |
|
130 |
|
|
129 |
mScale.set( scale,scale,scale ); |
|
131 | 130 |
mScreenMin = Math.min(width, height); |
132 | 131 |
mScreen.resize(width,height); |
133 | 132 |
} |
Also available in: Unified diff
Progress with BandagedCreator.