Project

General

Profile

« Previous | Next » 

Revision 881652a7

Added by Leszek Koltunski over 7 years ago

Some fixes for the recent API change

View differences:

src/main/java/org/distorted/library/EffectQueueMatrix.java
154 154
///////////////////////////////////////////////////////////////////////////////////////////////////
155 155
// here construct the ModelView Matrix
156 156

  
157
  synchronized void send(DistortedFramebuffer df, int halfX, int halfY, int halfZ)
157
  synchronized void send(DistortedFramebuffer df, float halfX, float halfY, float halfZ)
158 158
    {
159 159
    Matrix.setIdentityM(mViewMatrix, 0);
160 160
    Matrix.translateM(mViewMatrix, 0, -df.mWidth/2, df.mHeight/2, -df.mDistance);
......
242 242
///////////////////////////////////////////////////////////////////////////////////////////////////
243 243
// here construct the ModelView Matrix, but without any effects
244 244

  
245
  synchronized void sendZero(DistortedFramebuffer df, int halfX, int halfY, int halfZ)
245
  synchronized void sendZero(DistortedFramebuffer df, float halfX, float halfY, float halfZ)
246 246
    {
247 247
    Matrix.setIdentityM(mTmpMatrix, 0);
248 248
    Matrix.translateM(mTmpMatrix, 0, halfX-df.mWidth/2, df.mHeight/2-halfY, -df.mDistance);

Also available in: Unified diff