Merge "PointerLocationView: Display orientation correctly." into gingerbread

This commit is contained in:
Jeff Brown
2010-09-29 19:08:02 -07:00
committed by Android (Google) Code Review

View File

@@ -165,7 +165,7 @@ public class PointerLocationView extends View {
private void drawOval(Canvas canvas, float x, float y, float major, float minor,
float angle, Paint paint) {
canvas.save(Canvas.MATRIX_SAVE_FLAG);
canvas.rotate((float) (angle * 180 / Math.PI), x, y);
canvas.rotate((float) (-angle * 180 / Math.PI), x, y);
mReusableOvalRect.left = x - minor / 2;
mReusableOvalRect.right = x + minor / 2;
mReusableOvalRect.top = y - major / 2;