Project

General

Profile

« Previous | Next » 

Revision e8e54972

Added by Leszek Koltunski about 4 years ago

Fixes for the merge.

View differences:

src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java
104 104
    
105 105
  public void onSurfaceChanged(GL10 glUnused, int width, int height) 
106 106
    {
107
    float w = mTexture.getWidth();
108
    float h = mTexture.getHeight();
109
    float factor = 0.5f*(width>height ? height/h:width/w);
107
    float factor = 0.5f*(width>height ? height:width);
110 108

  
111 109
    mScale.set(factor,factor,factor);
112 110
    mScreen.resize(width, height);

Also available in: Unified diff