From 738e1869d8132f67aa370602173ddc9aa389b782 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Thu, 2 Jul 2015 18:24:57 +0900 Subject: [PATCH] pepper: Update view size when updating view geometry. Change-Id: I2dff6069f6d6e921d12f25793fcd585ed337a72d --- pepper/src/view.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pepper/src/view.c b/pepper/src/view.c index 86bb4ee..da652b5 100644 --- a/pepper/src/view.c +++ b/pepper/src/view.c @@ -158,6 +158,12 @@ view_update_geometry(pepper_view_t *view) pepper_mat4_copy(&view->matrix_to_global, &view->matrix_to_parent); } + if (view->surface) + { + view->w = view->surface->w; + view->h = view->surface->h; + } + /* Bounding region. */ pixman_region32_init_rect(&view->bounding_region, 0, 0, view->w, view->h); transform_region_bounding(&view->bounding_region, &view->matrix_to_global); @@ -294,6 +300,7 @@ pepper_compositor_add_surface_view(pepper_object_t *comp, pepper_object_t *sfc) view->state.visible = &view->visible_region; view->z_link.item = &view->state; + view->geometry_dirty = PEPPER_TRUE; return &view->base; } -- 2.7.4