diff options
Diffstat (limited to 'src/com/android/gallery3d/ui/GLRootView.java')
-rw-r--r-- | src/com/android/gallery3d/ui/GLRootView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java index d3969349a..390d58737 100644 --- a/src/com/android/gallery3d/ui/GLRootView.java +++ b/src/com/android/gallery3d/ui/GLRootView.java @@ -119,7 +119,11 @@ public class GLRootView extends GLSurfaceView setBackgroundDrawable(null); setEGLConfigChooser(mEglConfigChooser); setRenderer(this); - getHolder().setFormat(PixelFormat.RGB_565); + if (ApiHelper.USE_888_PIXEL_FORMAT) { + getHolder().setFormat(PixelFormat.RGB_888); + } else { + getHolder().setFormat(PixelFormat.RGB_565); + } // Uncomment this to enable gl error check. // setDebugFlags(DEBUG_CHECK_GL_ERROR); |