i have modified  /libs/ui/EGLDisplaySurface.cpp

uint32_t EGLDisplaySurface::swapBuffers()
-        memcpy(mFb[0].data, mFb[1].data, mInfo.xres*mInfo.yres*2);
+        memcpy(mFb[0].data, mFb[1].data,
mInfo.xres*mInfo.yres*bytesPerPixel(mFb[1].format));

and

status_t EGLDisplaySurface::mapFrameBuffer()
-        mFb[i].format  = GGL_PIXEL_FORMAT_RGB_565;
+        mFb[i].format  = GGL_PIXEL_FORMAT_BGRA_8888;


but it seemed not work properly.
could you tell  me how to configure  android emulator's display to
support 32bpp?
Thanks for anyone attention to this topic.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to