OSDN Git Service

Fix 6656710: center dot pattern in GlowPadView
authorJim Miller <jaggies@google.com>
Wed, 20 Jun 2012 00:38:04 +0000 (17:38 -0700)
committerJim Miller <jaggies@google.com>
Wed, 20 Jun 2012 01:28:25 +0000 (18:28 -0700)
commit94754ef36d1ceacb9a335202585e60c82b1f4b0d
treeba262c583858e87e99a87f775915818385f619e0
parent2a2b021a2133b769e0b82fd6edc166ba98129680
Fix 6656710: center dot pattern in GlowPadView

This fixes a bug where the dots weren't aligned with the center of the view.
The matrix should not contain the offset of the image itself since we really
want to scale about the abstract points.  The code now subtracts the image
centering positions (cx,cy) from the point to be scaled.

Change-Id: I1d46a5d51b1fd1d39944c64baf86c306c2d5e923
core/java/com/android/internal/widget/multiwaveview/PointCloud.java