summaryrefslogtreecommitdiffstats
path: root/libgralloc/framebuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libgralloc/framebuffer.cpp')
-rw-r--r--libgralloc/framebuffer.cpp8
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;
}