gavioto / playn

Automatically exported from code.google.com/p/playn
0 stars 0 forks source link

Incorrect order of parameters in AndroidCanvas.setTransform() #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set custom transfromation matrix on the Canvas via setTransform() method.
2. See output on Android device.

What is the expected output? What do you see instead?
On the Android platform after setting custom transformation via setTransform() 
method, the produced output image is incorrect. On other platforms it is OK.

What version of the product are you using? On what operating system?
Latest while creating this entry.

Please provide any additional information below.
Solution:
Change the code in the AndroidCanvas.setTransform()
  from:
m.setValues(new float[] {m11, m12, 0, m21, 0, m22, dx, dy, 1});
  to:
m.setValues(new float[] { m11, m12, dx, m21, m22, dy, 0, 0, 1 });

Original issue reported on code.google.com by pawel.le...@gmail.com on 13 Feb 2012 at 9:31