From e4c55bb1d095face356bb1f60d33f640e9d39891 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Tue, 25 Nov 2014 17:05:46 +0900 Subject: [PATCH] Change the sequence of last updated pixmap [model] Redwood,Kiran,B3(Wearable) [binary_type] AP [customer] Docomo/Orange/ATT/Open [issue#] N/A [problem] [cause] [solution] [team] HomeTF [request] [horizontal_expansion] Change-Id: I46e038a941f0affde900c930af52d84ab9903182 --- src/virtual_window.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/virtual_window.c b/src/virtual_window.c index eda4edf..7abdc1e 100644 --- a/src/virtual_window.c +++ b/src/virtual_window.c @@ -77,8 +77,6 @@ typedef struct virtual_window_info { unsigned int *resource_array; int resource_cnt; - unsigned int front_resource_id; - int pressed; } *vwin_info_t; @@ -797,7 +795,6 @@ static void pre_render_cb(void *data, Evas *e, void *event_info) /** * Only the pixmap type Ecore_Evas uses this variable */ - info->front_resource_id = ecore_evas_gl_x11_pixmap_get(info->ee); } else if (info->type == VWIN_SW_BUF) { /* Do nothing */ } @@ -830,9 +827,12 @@ static void post_render_cb(void *data, Evas *e, void *event_info) dynamicbox_buffer_post_render(info->handle); } else if (info->type == VWIN_PIXMAP) { int idx; + unsigned int front_resource_id; + + front_resource_id = ecore_evas_gl_x11_pixmap_get(info->ee); for (idx = 0; idx < DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT; idx++) { - if (info->front_resource_id == info->resource_array[idx]) { + if (front_resource_id == info->resource_array[idx]) { /** */ dynamicbox_send_updated_by_idx(info->handle, idx); @@ -842,10 +842,10 @@ static void post_render_cb(void *data, Evas *e, void *event_info) if (idx == DYNAMICBOX_CONF_EXTRA_BUFFER_COUNT) { /* Send updated event for PRIMARY BUFFER */ - if (info->front_resource_id == dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER)) { + if (front_resource_id == dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER)) { dynamicbox_send_updated_by_idx(info->handle, DBOX_PRIMARY_BUFFER); } else { - DbgPrint("Unable to send updated: %u (%u)\n", info->front_resource_id, dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER)); + DbgPrint("Unable to send updated: %u (%u)\n", front_resource_id, dynamicbox_resource_id(info->handle, DBOX_PRIMARY_BUFFER)); } } } else if (info->type == VWIN_SW_BUF) { -- 2.7.4