aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-08-13 17:11:48 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-08-13 17:11:48 +0200
commit9ec2c4522d62b26e3034314e361f255fe044016c (patch)
treefc74d411ea9b35119b153dd59cd28a04520eab96 /src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java
parent675f7c51443e11d6ad89662d9f8124473cc0c148 (diff)
downloadandroid_packages_wallpapers_PhotoPhase-9ec2c4522d62b26e3034314e361f255fe044016c.tar.gz
android_packages_wallpapers_PhotoPhase-9ec2c4522d62b26e3034314e361f255fe044016c.tar.bz2
android_packages_wallpapers_PhotoPhase-9ec2c4522d62b26e3034314e361f255fe044016c.zip
Aspect ratio correction (implementation) (#14)
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java')
-rw-r--r--src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java b/src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java
index 7f0cbbc..d2bd46e 100644
--- a/src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java
+++ b/src/org/cyanogenmod/wallpapers/photophase/utils/GLESUtil.java
@@ -166,6 +166,10 @@ public final class GLESUtil {
* The path to the texture
*/
public File path;
+ /**
+ * The effect to apply
+ */
+ public Effect effect;
}
/**
@@ -436,7 +440,6 @@ public final class GLESUtil {
if (effect != null) {
// Apply the effect
effect.apply(textureNames[0], screenDim.width(), screenDim.height(), textureNames[1]);
- effect.release();
handle = textureNames[1];
// Delete the unused texture