diff options
author | PaulK <contact@paulk.fr> | 2011-09-28 19:30:25 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-07-09 00:28:52 +0200 |
commit | db040b9e432b3684455f9dd76b3305255fea3db7 (patch) | |
tree | 9cf44581697eb797e64ed90756e895cc883c1d2d /libgralloc/framebuffer.cpp | |
parent | 7f743ba3cbe3aa390465e5fbc5528aaf01e01a93 (diff) | |
download | device_samsung_crespo-db040b9e432b3684455f9dd76b3305255fea3db7.zip device_samsung_crespo-db040b9e432b3684455f9dd76b3305255fea3db7.tar.gz device_samsung_crespo-db040b9e432b3684455f9dd76b3305255fea3db7.tar.bz2 |
modified: camera (b&w preview and no postview for now), gralloc (enable plain alpha), added: libsamsung-ipc, corrected: debug.sf.hw.
Change-Id: Ib97907b6639611b73da38e4c1f1e298cdb1c8d2b
Diffstat (limited to 'libgralloc/framebuffer.cpp')
-rw-r--r-- | libgralloc/framebuffer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp index 6a5497e..f155b54 100644 --- a/libgralloc/framebuffer.cpp +++ b/libgralloc/framebuffer.cpp @@ -35,6 +35,7 @@ #if HAVE_ANDROID_OS #include <linux/fb.h> +#include <s3cfb.h> #endif #include "gralloc_priv.h" @@ -290,6 +291,13 @@ int mapFrameBufferLocked(struct private_module_t* module) } module->framebuffer->base = intptr_t(vaddr); memset(vaddr, 0, fbSize); + + struct s3cfb_user_plane_alpha user_alpha; + + memset(&user_alpha, 0, sizeof(user_alpha)); + if(ioctl(fd, S3CFB_WIN_SET_PLANE_ALPHA, &user_alpha) == -1) + return -errno; + return 0; } |