diff options
author | Owen Lin <owenlin@google.com> | 2010-03-03 21:12:40 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2010-03-07 14:30:49 +0800 |
commit | 281be5337852cb4b5d24e0a0440c426cb96bbebd (patch) | |
tree | b4218ea13055f7e9302e432554baf1e12695cef1 /src/com/android/camera/ui/PopupWindowStencilImpl.java | |
parent | be69d39c4ab8fa93a52ed13a72ba2ad582adf583 (diff) | |
download | LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.zip LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.tar.gz LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.tar.bz2 |
Add pixel density concept to the code. So, it draw about the same size on
mdpi and hdpi devices.
Update the UI assets for mdpi
Fix a issue that GLSurfaceView didn't call onPause and onResume in Camera.
Refactor. Improve the drawing and animation.
Also fix the RawTexture unsupported operation bugs and the NullPointerException
in GLRootView.
Change-Id: I7aeadcad72d64a665828a6bb4f0f73e685fde632
Diffstat (limited to 'src/com/android/camera/ui/PopupWindowStencilImpl.java')
-rw-r--r-- | src/com/android/camera/ui/PopupWindowStencilImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/camera/ui/PopupWindowStencilImpl.java b/src/com/android/camera/ui/PopupWindowStencilImpl.java index eaf9134..b05b4e5 100644 --- a/src/com/android/camera/ui/PopupWindowStencilImpl.java +++ b/src/com/android/camera/ui/PopupWindowStencilImpl.java @@ -23,7 +23,7 @@ public class PopupWindowStencilImpl extends PopupWindow { gl.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_REPLACE); gl.glStencilFunc(GL11.GL_ALWAYS, 1, 1); if (mAnchor.bind(rootView, gl)) { - rootView.draw2D(aXoffset, aYoffset, aWidth, aHeight); + mAnchor.draw(rootView, aXoffset, aYoffset); } gl.glStencilFunc(GL11.GL_NOTEQUAL, 1, 1); gl.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_KEEP); @@ -32,8 +32,7 @@ public class PopupWindowStencilImpl extends PopupWindow { if (mBackground != null) { mBackground.setSize(width - aWidth + mAnchorOffset, height); if (mBackground.bind(rootView, gl)) { - rootView.draw2D( - 0, 0, mBackground.getWidth(), mBackground.getHeight()); + mBackground.draw(rootView, 0, 0); } } } |