X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Flayouthandler.cpp;h=65e019489eb16218c2084d24a49d9a60c269186c;hb=824bfd42b0105b0aeffbc33a87285578abda2f3b;hp=647bc79aa1489598e854d2ce4eac07f0daf14dd9;hpb=374ad482811eb1ee0eb0db49a23ab12318010c46;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/layouthandler.cpp b/HomeScreen/src/layouthandler.cpp index 647bc79..65e0194 100644 --- a/HomeScreen/src/layouthandler.cpp +++ b/HomeScreen/src/layouthandler.cpp @@ -38,7 +38,7 @@ void LayoutHandler::setUpLayouts() SimpleRect surfaceArea; const int SCREEN_WIDTH = 1080; - const int SCREEN_HEIGHT = 1080; + const int SCREEN_HEIGHT = 1920; const int STATUSBAR_HEIGHT = 60; const int STATUSBAR_WIDTH = SCREEN_WIDTH; @@ -77,7 +77,7 @@ void LayoutHandler::setUpLayouts() // bottom surface surfaceArea.x = 0; - surfaceArea.y = STATUSBAR_HEIGHT / 2; + surfaceArea.y = SCREEN_HEIGHT / 2; surfaceArea.width = SCREEN_WIDTH; surfaceArea.height = (SCREEN_HEIGHT - STATUSBAR_HEIGHT - CONTROLBAR_HEIGHT) / 2; @@ -133,7 +133,7 @@ void LayoutHandler::makeMeVisible(int pid) for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } } if (1 == availableLayouts.size()) @@ -146,7 +146,7 @@ void LayoutHandler::makeMeVisible(int pid) mp_dBusWindowManagerProxy->setLayoutById(availableLayouts.at(0)); for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } } if (1 < availableLayouts.size()) @@ -175,6 +175,6 @@ void LayoutHandler::setLayoutByName(QString layoutName) mp_dBusWindowManagerProxy->setLayoutByName(layoutName); for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } }