From d24467414b60768e8d0d0e82b6fce787d464744a Mon Sep 17 00:00:00 2001 From: Dima Zavin Date: Thu, 24 Sep 2009 01:07:33 -0700 Subject: [PATCH] copybit: hack to always request premultiplied alpha blend. The kernel will only do it for images with an alpha plane. Change-Id: Idcba41945ed7d17daae0a5bcc48c64a82a49dded Signed-off-by: Dima Zavin --- libcopybit/copybit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 5ce89e8..b3d44f6 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -192,7 +192,7 @@ static void set_rects(struct copybit_context_t *dev, static void set_infos(struct copybit_context_t *dev, struct mdp_blit_req *req) { req->alpha = dev->mAlpha; req->transp_mask = MDP_TRANSP_NOP; - req->flags = dev->mFlags; + req->flags = dev->mFlags | MDP_BLEND_FG_PREMULT; } /** copy the bits */