author | shuze.ma <shuze.ma@amlogic.com> | 2017-08-14 06:24:25 (GMT) |
---|---|---|
committer | shuze.ma <shuze.ma@amlogic.com> | 2017-08-22 09:05:50 (GMT) |
commit | 4ba87e8dd26d895d498acb225de3f613acf0d9ce (patch) | |
tree | 8ccefac998ce07ef03f651904f435610b57221ee | |
parent | ea28c474e56cbe4dd8805da54bf07a27d6d805fe (diff) | |
download | gralloc-4ba87e8dd26d895d498acb225de3f613acf0d9ce.zip gralloc-4ba87e8dd26d895d498acb225de3f613acf0d9ce.tar.gz gralloc-4ba87e8dd26d895d498acb225de3f613acf0d9ce.tar.bz2 |
gralloc: delaying setting of cursor color [1/1]
PD# 147258
modified framebuffer.cpp by delaying formatting the cursor
Change-Id: Ie27dc858a2aa5d5a87427f02806a7aa2e9bc409c
-rw-r--r-- | framebuffer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/framebuffer.cpp b/framebuffer.cpp index 61dcbde..5afed0f 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -140,6 +140,19 @@ int update_cursor_buffer_locked(struct framebuffer_info_t* cbinfo, int xres, int 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; + info.xres_virtual = info.xres = xres; info.yres_virtual = info.yres = yres; @@ -245,19 +258,6 @@ 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"); |