From 92b539c7340237c41f93c02cab3efa46c2472682 Mon Sep 17 00:00:00 2001 From: Xiaofei Wan Date: Thu, 17 Apr 2014 14:17:22 +0800 Subject: Fix abnormal display for static stars. When Black Hole is selected as Live Wallpapers, many mosaic points are shown on the screen instead of the stars. 1). Change the size of staticstar.png and staticstar2.png to power of 2 to avoid display distortion; 2). Increase the scale factor to draw big stars. Change-Id: I4ca34b72dda285d4d4d2cda7d99c2e2a5e095144 Signed-off-by: Xiaofei Wan --- res/drawable-nodpi/staticstar.png | Bin 1332 -> 1489 bytes res/drawable-nodpi/staticstar2.png | Bin 6971 -> 8232 bytes src/com/android/galaxy4/GalaxyRS.java | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/res/drawable-nodpi/staticstar.png b/res/drawable-nodpi/staticstar.png index 169d9e9..4663ac3 100644 Binary files a/res/drawable-nodpi/staticstar.png and b/res/drawable-nodpi/staticstar.png differ diff --git a/res/drawable-nodpi/staticstar2.png b/res/drawable-nodpi/staticstar2.png index 3bf88f0..e30dd77 100644 Binary files a/res/drawable-nodpi/staticstar2.png and b/res/drawable-nodpi/staticstar2.png differ diff --git a/src/com/android/galaxy4/GalaxyRS.java b/src/com/android/galaxy4/GalaxyRS.java index f6136ae..0e84cbe 100644 --- a/src/com/android/galaxy4/GalaxyRS.java +++ b/src/com/android/galaxy4/GalaxyRS.java @@ -152,7 +152,7 @@ public class GalaxyRS { Matrix4f projNorm = getProjectionNormalized(mWidth, mHeight); ScriptField_VpConsts.Item i = new ScriptField_VpConsts.Item(); i.MVP = projNorm; - i.scaleSize = mDensityDPI / 240.0f; + i.scaleSize = mDensityDPI / 120.0f; mPvConsts.set(i, 0, true); mScript.invoke_positionParticles(); } -- cgit v1.2.3