Project

General

Profile

« Previous | Next » 

Revision 630703d1

Added by Leszek Koltunski about 7 years ago

Revert "Major refactoring: convert the Matrix Effects to be independent of the resolution of the surface we render to."

This reverts commit d79a56d3bc6cc7a22b21abeb180353a1818bd6ad.

View differences:

src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java
34 34
import org.distorted.library.DistortedTexture;
35 35
import org.distorted.library.Distorted;
36 36
import org.distorted.library.EffectNames;
37
import org.distorted.library.EffectTypes;
37 38
import org.distorted.library.message.EffectListener;
38 39
import org.distorted.library.message.EffectMessage;
40
import org.distorted.library.type.Static3D;
39 41

  
40 42
///////////////////////////////////////////////////////////////////////////////////////////////////
41 43

  
......
125 127

  
126 128
  public void onSurfaceChanged(GL10 glUnused, int width, int height)
127 129
    {
130
    mEffects.abortEffects(EffectTypes.MATRIX);
131
    mEffects.scale( new Static3D((float)width/texWidth,(float)height/texHeight,1) );
128 132
    mScreen.resize(width,height);
129 133
    mView.setScreenSize(width,height);
130 134
    }

Also available in: Unified diff