summaryrefslogtreecommitdiff
path: root/ivi-layermanagement-examples
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-07-01 10:57:23 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-07-06 18:41:04 +0900
commit0fe9815fe8cd21b6d25a87c348467b34ca77240d (patch)
treeb8e238ec31ac08f736cd5df0e3518f2c074bc3a2 /ivi-layermanagement-examples
parentce59e9b831e9205df3c97d580c55ea6a62b62b7a (diff)
downloadwayland-ivi-extension-0fe9815fe8cd21b6d25a87c348467b34ca77240d.tar.gz
LayerManagerControl: remove ilm_surfaceGetDimension calls
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-layermanagement-examples')
-rw-r--r--ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
index 40a67cd..fde043f 100644
--- a/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
+++ b/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
@@ -458,10 +458,13 @@ COMMAND("set layer|surface <id> width <width>")
}
else if (input->contains("surface"))
{
- unsigned int dimension[2];
+ t_ilm_uint w;
unsigned int surfaceid = input->getUint("id");
- ilmErrorTypes callResult = ilm_surfaceGetDimension(surfaceid, dimension);
+ //surface properties
+ ilmSurfaceProperties sp;
+
+ ilmErrorTypes callResult = ilm_getPropertiesOfSurface(surfaceid, &sp);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -469,9 +472,9 @@ COMMAND("set layer|surface <id> width <width>")
return;
}
- dimension[0] = input->getUint("width");
+ w = input->getUint("width");
- callResult = ilm_surfaceSetDimension(surfaceid, dimension);
+ callResult = ilm_surfaceSetDestinationRectangle(surfaceid, sp.destX, sp.destY, w, sp.destHeight);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -514,10 +517,13 @@ COMMAND("set layer|surface <id> height <height>")
}
else if (input->contains("surface"))
{
- unsigned int dimension[2];
+ t_ilm_uint h;
unsigned int surfaceid = input->getUint("id");
- ilmErrorTypes callResult = ilm_surfaceGetDimension(surfaceid, dimension);
+ //surface properties
+ ilmSurfaceProperties sp;
+
+ ilmErrorTypes callResult = ilm_getPropertiesOfSurface(surfaceid, &sp);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -525,9 +531,8 @@ COMMAND("set layer|surface <id> height <height>")
return;
}
- dimension[1] = input->getUint("height");
-
- callResult = ilm_surfaceSetDimension(surfaceid, dimension);
+ h = input->getUint("height");
+ callResult = ilm_surfaceSetDestinationRectangle(surfaceid, sp.destX, sp.destY, sp.destWidth, h);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";