From 589243b8322d3f078c5284e1b20d69cdbc933aaa Mon Sep 17 00:00:00 2001 From: MinJeong Kim Date: Tue, 31 May 2016 21:08:07 +0900 Subject: [PATCH] e_pixmap: set initial value for tbm native surface Uninitialized member value(rot, flip, ratio) of tbm native surface can allow drawing image object with wrong information. This patch fixes the problem. Change-Id: If9f4ef19c86480edf7bcf1fb1051d39421690ca9 Signed-off-by: MinJeong Kim --- src/bin/e_pixmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index d2c1090..810e508 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -542,6 +542,9 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns) ns->type = EVAS_NATIVE_SURFACE_TBM; ns->version = EVAS_NATIVE_SURFACE_VERSION; ns->data.tbm.buffer = cp->buffer->tbm_surface; + ns->data.tbm.rot = 0; + ns->data.tbm.ratio = 0; + ns->data.tbm.flip = 0; if (cp->buffer->tbm_surface) ret = EINA_TRUE; } -- 2.7.4