[PATCH] Make the gta04 use 32bit framebuffer.
Denis 'GNUtoo' Carikli
GNUtoo at no-log.org
Sat May 19 08:19:26 UTC 2012
The gta04 is the only device that uses the omap3 gralloc for now.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
framebuffer.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/framebuffer.cpp b/framebuffer.cpp
index e7f6370..d7490c4 100644
--- a/framebuffer.cpp
+++ b/framebuffer.cpp
@@ -196,6 +196,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
info.yoffset = 0;
info.activate = FB_ACTIVATE_NOW;
+#if 0
/*
* Explicitly request 5/6/5
*/
@@ -208,6 +209,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
info.blue.length = 5;
info.transp.offset = 0;
info.transp.length = 0;
+#endif
/*
* Request NUM_BUFFERS screens (at lest 2 for page flipping)
@@ -378,7 +380,7 @@ int fb_device_open(hw_module_t const* module, const char* name,
const_cast<uint32_t&>(dev->device.width) = m->info.xres;
const_cast<uint32_t&>(dev->device.height) = m->info.yres;
const_cast<int&>(dev->device.stride) = stride;
- const_cast<int&>(dev->device.format) = HAL_PIXEL_FORMAT_RGB_565;
+ const_cast<int&>(dev->device.format) = HAL_PIXEL_FORMAT_BGRA_8888;
const_cast<float&>(dev->device.xdpi) = m->xdpi;
const_cast<float&>(dev->device.ydpi) = m->ydpi;
const_cast<float&>(dev->device.fps) = m->fps;
--
1.7.5.4
More information about the Replicant
mailing list