Fix live wallpaper "Grass" display issue
After selected Settings->Display->Wallpaper->Live Wallpapers->Grass,
observed "Grass" was distorted. Sometimes, it's just black.
To fix it, instead of using hard coded 1024.0f-32.0f, use the pass
in param height to fit different device display config.
Change-Id: I0b3a2b4a83bc40a6255f58003a4a3fed653c12bc
diff --git a/src/com/android/wallpaper/grass/grass.rs b/src/com/android/wallpaper/grass/grass.rs
index 32f0536..b03f19c 100644
--- a/src/com/android/wallpaper/grass/grass.rs
+++ b/src/com/android/wallpaper/grass/grass.rs
@@ -243,9 +243,9 @@
rsgDrawQuadTexCoords(
0.0f, -32.0f, 0.0f,
0.0f, 1.0f,
- 0.0f, 1024.0f - 32.0f, 0.0f,
+ 0.0f, height, 0.0f,
0.0f, 0.0f,
- width, 1024.0f - 32.0f, 0.0f,
+ width, height, 0.0f,
2.0f, 0.0f,
width, -32.0f, 0.0f,
2.0f, 1.0f);