summaryrefslogtreecommitdiff
authorshuze.ma <shuze.ma@amlogic.com>2017-07-18 03:31:47 (GMT)
committer Sky Zhou <sky.zhou@amlogic.com>2017-08-03 08:23:46 (GMT)
commitea28c474e56cbe4dd8805da54bf07a27d6d805fe (patch)
treee7aac7fae28c2e7a3baf4ca8867bbda2bc254fca
parent41820239ae389e2d7e605753a42ff7e544ccae35 (diff)
downloadgralloc-ea28c474e56cbe4dd8805da54bf07a27d6d805fe.zip
gralloc-ea28c474e56cbe4dd8805da54bf07a27d6d805fe.tar.gz
gralloc-ea28c474e56cbe4dd8805da54bf07a27d6d805fe.tar.bz2
gralloc: fixed hw cursor color display error [1/1]
PD# 147709 alter file framebuffer.cpp , add color info Change-Id: Ife3797ab840698636f357e0e9f084ee7671535d6
Diffstat
-rw-r--r--framebuffer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/framebuffer.cpp b/framebuffer.cpp
index 394182a..61dcbde 100644
--- a/framebuffer.cpp
+++ b/framebuffer.cpp
@@ -245,6 +245,19 @@ int init_cursor_buffer_locked(struct framebuffer_info_t* cbinfo)
info.xoffset = info.yoffset = 0;
info.bits_per_pixel = 32;
+ /*
+ * Explicitly request 8/8/8/8
+ */
+ info.bits_per_pixel = 32;
+ info.red.offset = 0;
+ info.red.length = 8;
+ info.green.offset = 8;
+ info.green.length = 8;
+ info.blue.offset = 16;
+ info.blue.length = 8;
+ info.transp.offset = 24;
+ info.transp.length = 8;
+
if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1)
{
ALOGE("set vinfo fail\n");