Not sure if this will help or not, in the swapbuffer function try
-        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));



On Thu, Sep 24, 2009 at 5:48 AM, dhananjay <[email protected]>wrote:

>
> Hi All
>         In android fb support is for 16bpp , i have target board
> which doesnt support 16 bpp
>         so i changed it to 32 bpp in EGLDisplaySurface.cpp , i made
> following changes in that file
> these are my changes
>
>  info.bits_per_pixel = 32;
>  /* Explicitly request 5/6/5 -- Not now anyway*/
>   info.red.offset = 16;
>  info.red.length = 8;
>  info.green.offset = 8;
>   info.green.length = 8;
> info.blue.length = 8;
>  info.transp.offset = 25;
>  info.transp.length = 8;
>
>  mFb[i].format  = GGL_PIXEL_FORMAT_RGBA_8888;
>
> but i'm getting the display cut exactly in half size in horizontal
> plane , and only upper half is visible while lower half is
> not .......does anybody know where exactly i need to change the
> settings to get full display ??
> >
>


-- 
Android-x86
http://www.android-x86.org

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

Reply via email to