summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/GLListView.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2010-03-03 21:12:40 +0800
committerOwen Lin <owenlin@google.com>2010-03-07 14:30:49 +0800
commit281be5337852cb4b5d24e0a0440c426cb96bbebd (patch)
treeb4218ea13055f7e9302e432554baf1e12695cef1 /src/com/android/camera/ui/GLListView.java
parentbe69d39c4ab8fa93a52ed13a72ba2ad582adf583 (diff)
downloadLegacyCamera-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/GLListView.java')
-rw-r--r--src/com/android/camera/ui/GLListView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/ui/GLListView.java b/src/com/android/camera/ui/GLListView.java
index c5161ea..bbee042 100644
--- a/src/com/android/camera/ui/GLListView.java
+++ b/src/com/android/camera/ui/GLListView.java
@@ -66,8 +66,8 @@ public class GLListView extends GLView {
int height = bounds.height();
mHighLight.setSize(width, height);
if (mHighLight.bind(root, gl)) {
- root.draw2D(bounds.left - mScrollX,
- bounds.top - mScrollY, width, height);
+ mHighLight.draw(root,
+ bounds.left - mScrollX, bounds.top - mScrollY);
}
}
}
@@ -80,7 +80,7 @@ public class GLListView extends GLView {
mScrollbar.setSize(width, height);
if (mScrollbar.bind(root, gl)) {
int yoffset = mScrollY * getHeight() / mScrollHeight;
- root.draw2D(getWidth() - width, yoffset, width, height);
+ mScrollbar.draw(root, getWidth() - width, yoffset);
}
}
}