From: Jan-Simon Moeller Date: Sun, 9 Jun 2019 21:57:14 +0000 (+0000) Subject: Merge "Docs:Fix expired link and typo." X-Git-Tag: 7.99.2~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d115c284cedfe83e0ee910d336f621cd22e97b93;hp=09b0abb8dfcbdae2f3c6bd1c3e20fb1bd83b0d40;p=apps%2Fagl-service-windowmanager.git Merge "Docs:Fix expired link and typo." --- diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index c5c7913..5b801f7 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -401,8 +401,11 @@ WMError LayerControl::layoutChange(const WMAction& action) if(!action.client->isSourceSizeSet()) { ilmSurfaceProperties sp; - ilm_getPropertiesOfSurface(surface, &sp); - if((sp.origSourceHeight != sp.sourceHeight) || (sp.origSourceWidth != sp.sourceWidth)) + if (ILM_SUCCESS != ilm_getPropertiesOfSurface(surface, &sp)) + return WMError::FAIL; + + if (sp.origSourceHeight != sp.sourceHeight || + sp.origSourceWidth != sp.sourceWidth) { HMI_SEQ_NOTICE(action.req_num, "set source size w:%d h%d", sp.origSourceWidth, sp.origSourceHeight); ilm_surfaceSetSourceRectangle(surface, 0, 0, sp.origSourceWidth, sp.origSourceHeight);