Revision c7a31368
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
88 | 88 |
|
89 | 89 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
90 | 90 |
{ |
91 |
float min= width>height ? height : width; |
|
91 |
if( width<height ) mScale.set( width, width*mBmpRatio, 1 ); |
|
92 |
else mScale.set( height/mBmpRatio, height, 1 ); |
|
92 | 93 |
|
93 |
mScale.set( min, min*mBmpRatio, 1 ); |
|
94 | 94 |
mScreen.resize(width, height); |
95 | 95 |
} |
96 | 96 |
|
Also available in: Unified diff
Further corrections for the first apps.