diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-08-20 00:33:19 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-08-20 00:33:19 +0200 |
commit | 1b537a79ceedcd2369941ef6d7ca1371d395bcef (patch) | |
tree | 4b4a2719191d5f7c60e8fa10d90bfa4e00eb2c4a /src/org/cyanogenmod/wallpapers/photophase/TextureManager.java | |
parent | 8a28e0b1dd9386c70732860e71d5ee91643d61f8 (diff) | |
download | android_packages_wallpapers_PhotoPhase-1b537a79ceedcd2369941ef6d7ca1371d395bcef.tar.gz android_packages_wallpapers_PhotoPhase-1b537a79ceedcd2369941ef6d7ca1371d395bcef.tar.bz2 android_packages_wallpapers_PhotoPhase-1b537a79ceedcd2369941ef6d7ca1371d395bcef.zip |
Force to use image dimensions instead of screen dimensions (#26)
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/org/cyanogenmod/wallpapers/photophase/TextureManager.java')
-rw-r--r-- | src/org/cyanogenmod/wallpapers/photophase/TextureManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java b/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java index 700a728..8f17162 100644 --- a/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java +++ b/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java @@ -90,7 +90,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { // Bind to the GLES context GLESTextureInfo oldTextureInfo = sRecycledBitmaps.remove(0); try { - ti = GLESUtil.loadTexture(oldTextureInfo.bitmap, effect, mScreenDimensions); + ti = GLESUtil.loadTexture(oldTextureInfo.bitmap, effect, mDimensions); ti.path = oldTextureInfo.path; } finally { if (GLES20.glIsTexture(oldTextureInfo.handle)) { @@ -107,7 +107,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { // is associated to the destination target (only if aspect ratio will be applied) if (!Preferences.General.isFixAspectRatio()) { ti = GLESUtil.loadTexture( - mImage, mDimensions, effect, mScreenDimensions, false); + mImage, mDimensions, effect, mDimensions, false); } else { ti = GLESUtil.loadTexture(mImage, mDimensions, null, null, false); ti.effect = effect; @@ -450,7 +450,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { pixels.width(), pixels.height(), ThumbnailUtils.OPTIONS_RECYCLE_INPUT); - GLESTextureInfo dst = GLESUtil.loadTexture(thumb, ti.effect, mScreenDimensions); + GLESTextureInfo dst = GLESUtil.loadTexture(thumb, ti.effect, pixels); // Destroy references int[] textures = new int[]{ti.handle}; |