Project

General

Profile

« Previous | Next » 

Revision 8cb9208c

Added by Leszek Koltunski almost 8 years ago

Fix with Projection

View differences:

src/main/java/org/distorted/examples/projection/ProjectionRenderer.java
64 64

  
65 65
   static int setX(int x)
66 66
      {
67
      mX = (x-50)*0.01f*mWidth;
67
      mX = (x-50)*0.02f*mWidth;
68 68
      Distorted.setProjection(mF,mX,mY);
69 69
      return (int)mX;
70 70
      }
......
73 73

  
74 74
   static int setY(int y)
75 75
      {
76
      mY = (y-50)*0.01f*mHeight;
76
      mY = (y-50)*0.02f*mHeight;
77 77
      Distorted.setProjection(mF,mX,mY);
78 78
      return (int)mY;
79 79
      }

Also available in: Unified diff