summaryrefslogtreecommitdiffstats
path: root/libs/hwui/tests
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-05-14 18:05:36 -0700
committerAlan Viverette <alanv@google.com>2015-05-14 18:05:36 -0700
commit50210d912925aef14e4ce69be82e4949122a3cd9 (patch)
treeba87c37a8b2db6521df6f8c62307319bcf70a823 /libs/hwui/tests
parent9cb90cbbf8fc91793dad1d1cb317079dbc7e8421 (diff)
downloadframeworks_base-50210d912925aef14e4ce69be82e4949122a3cd9.zip
frameworks_base-50210d912925aef14e4ce69be82e4949122a3cd9.tar.gz
frameworks_base-50210d912925aef14e4ce69be82e4949122a3cd9.tar.bz2
Adjust light source for window position
Bug: 16523629 Change-Id: I2f3fed1edcac0a3cfd5034aded45e08ececfebaf
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r--libs/hwui/tests/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp
index 2f79c58..ceee953 100644
--- a/libs/hwui/tests/main.cpp
+++ b/libs/hwui/tests/main.cpp
@@ -92,8 +92,8 @@ public:
proxy->loadSystemProperties();
proxy->initialize(surface);
float lightX = width / 2.0;
- proxy->setup(width, height, (Vector3){lightX, dp(-200.0f), dp(800.0f)},
- dp(800.0f), 255 * 0.075, 255 * 0.15);
+ proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15);
+ proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)});
android::uirenderer::Rect DUMMY;