summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiaofei Wan <xiaofei.wan@intel.com>2014-04-17 14:17:22 +0800
committerMichael Bestas <mikeioannina@gmail.com>2014-05-03 18:09:05 +0000
commitcf5a38bd8eb26ab0edf2c33d6a580b94e6c9b1af (patch)
tree16e3e893925d34e8dabe5816d90980c1d1da03c0
parent9332bd9577e17a9ad7bed023c9c085bf9de53888 (diff)
downloadandroid_packages_wallpapers_Galaxy4-cf5a38bd8eb26ab0edf2c33d6a580b94e6c9b1af.tar.gz
android_packages_wallpapers_Galaxy4-cf5a38bd8eb26ab0edf2c33d6a580b94e6c9b1af.tar.bz2
android_packages_wallpapers_Galaxy4-cf5a38bd8eb26ab0edf2c33d6a580b94e6c9b1af.zip
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 <xiaofei.wan@intel.com>
-rw-r--r--res/drawable-nodpi/staticstar.pngbin1332 -> 1489 bytes
-rw-r--r--res/drawable-nodpi/staticstar2.pngbin6971 -> 8232 bytes
-rw-r--r--src/com/android/galaxy4/GalaxyRS.java2
3 files changed, 1 insertions, 1 deletions
diff --git a/res/drawable-nodpi/staticstar.png b/res/drawable-nodpi/staticstar.png
index 169d9e9..4663ac3 100644
--- a/res/drawable-nodpi/staticstar.png
+++ b/res/drawable-nodpi/staticstar.png
Binary files differ
diff --git a/res/drawable-nodpi/staticstar2.png b/res/drawable-nodpi/staticstar2.png
index 3bf88f0..e30dd77 100644
--- a/res/drawable-nodpi/staticstar2.png
+++ b/res/drawable-nodpi/staticstar2.png
Binary files 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();
}