summaryrefslogtreecommitdiff
path: root/ivi-layermanagement-api
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-07-06 09:02:18 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-07-06 22:17:55 +0900
commit119cfaff79ca4f89467e9fac9888b1bc6b9143af (patch)
treef7bd4bdd84af4a80b5f6a7e1f26ddff29d77e656 /ivi-layermanagement-api
parente1807117aea8e760a3134d137bad7581f10a685d (diff)
downloadwayland-ivi-extension-119cfaff79ca4f89467e9fac9888b1bc6b9143af.tar.gz
ilmControl: set original dimensions at configuration event.
It is wrong to set it at source_rectangle event. Original dimensions are dependent on the wayland buffer of the surface, and it can be modified from the client. The compositor sends a configured event when the buffer is modified. Therefore, we should also modify the original dimensions at configuration event. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-layermanagement-api')
-rw-r--r--ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
index 97d9633..0bb5a2f 100644
--- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
@@ -519,8 +519,8 @@ controller_surface_listener_configuration(void *data,
{
struct surface_context *ctx_surf = data;
- ctx_surf->prop.sourceWidth = (t_ilm_uint)width;
- ctx_surf->prop.sourceHeight = (t_ilm_uint)height;
+ ctx_surf->prop.origSourceWidth = (t_ilm_uint)width;
+ ctx_surf->prop.origSourceHeight = (t_ilm_uint)height;
}
static void
@@ -537,12 +537,6 @@ controller_surface_listener_source_rectangle(void *data,
ctx_surf->prop.sourceY = (t_ilm_uint)y;
ctx_surf->prop.sourceWidth = (t_ilm_uint)width;
ctx_surf->prop.sourceHeight = (t_ilm_uint)height;
- if (ctx_surf->prop.origSourceWidth == 0) {
- ctx_surf->prop.origSourceWidth = (t_ilm_uint)width;
- }
- if (ctx_surf->prop.origSourceHeight == 0) {
- ctx_surf->prop.origSourceHeight = (t_ilm_uint)height;
- }
if (ctx_surf->notification != NULL) {
ctx_surf->notification(ctx_surf->id_surface,