summaryrefslogtreecommitdiff
path: root/ivi-layermanagement-examples
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-07-06 14:52:25 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-07-08 08:56:14 +0900
commit32b89a8e29d1ad0f5a6ca1147450bae026996e0f (patch)
treef556086516f1ddc7d8e359650aa192e8d782fc6b /ivi-layermanagement-examples
parent911d04a242242fdbc2bd7f0ecf29e4bc937d93eb (diff)
downloadwayland-ivi-extension-32b89a8e29d1ad0f5a6ca1147450bae026996e0f.tar.gz
LayerManagerControl: remove ilm_layerGetDimension calls
instead use the ilm_getPropertiesOfLayer API 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.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
index fde043f..c06371e 100644
--- a/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
+++ b/ivi-layermanagement-examples/LayerManagerControl/src/commands.cpp
@@ -433,10 +433,12 @@ COMMAND("set layer|surface <id> width <width>")
{
if (input->contains("layer"))
{
- unsigned int dimension[2];
+ t_ilm_uint w;
unsigned int layerid = input->getUint("id");
- ilmErrorTypes callResult = ilm_layerGetDimension(layerid, dimension);
+ ilmLayerProperties lp;
+
+ ilmErrorTypes callResult = ilm_getPropertiesOfLayer(layerid, &lp);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -444,9 +446,9 @@ COMMAND("set layer|surface <id> width <width>")
return;
}
- dimension[0] = input->getUint("width");
+ w = input->getUint("width");
- callResult = ilm_layerSetDimension(layerid, dimension);
+ callResult = ilm_layerSetDestinationRectangle(layerid, lp.destX, lp.destY, w, lp.destHeight);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -492,10 +494,12 @@ COMMAND("set layer|surface <id> height <height>")
{
if (input->contains("layer"))
{
- unsigned int dimension[2];
+ t_ilm_uint h;
unsigned int layerid = input->getUint("id");
- ilmErrorTypes callResult = ilm_layerGetDimension(layerid, dimension);
+ ilmLayerProperties lp;
+
+ ilmErrorTypes callResult = ilm_getPropertiesOfLayer(layerid, &lp);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";
@@ -503,9 +507,9 @@ COMMAND("set layer|surface <id> height <height>")
return;
}
- dimension[1] = input->getUint("height");
+ h = input->getUint("height");
- callResult = ilm_layerSetDimension(layerid, dimension);
+ callResult = ilm_layerSetDestinationRectangle(layerid, lp.destX, lp.destY, lp.destWidth, h);
if (ILM_SUCCESS != callResult)
{
cout << "LayerManagerService returned: " << ILM_ERROR_STRING(callResult) << "\n";