Skip to content

Commit

Permalink
Added trap for the value according to @RS102839
Browse files Browse the repository at this point in the history
Open-webOS-DCO-1.0-Signed-off-by: Penk Chen <penkia@gmail.com>
  • Loading branch information
penk authored and Roger Stringer committed Oct 14, 2012
1 parent 1a73d41 commit 952dc2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/base/hosts/HostQtDesktop.cpp
Expand Up @@ -469,6 +469,10 @@ void HostQtDesktop::init(int w, int h)
qDebug() << __PRETTY_FUNCTION__ << "Going fullscreen with width" << windowWidth << "height" << (windowHeight - GESTURE_AREA_HEIGHT);
}

if (GESTURE_AREA_HEIGHT != 0 && (GESTURE_AREA_HEIGHT < (windowHeight/30) || GESTURE_AREA_HEIGHT > (windowHeight/10))) {
Settings::LunaSettings()->gestureAreaHeight = (windowHeight/16);
}

m_info.displayBuffer = 0;
m_info.displayWidth = windowWidth;
m_info.displayHeight = windowHeight - GESTURE_AREA_HEIGHT;
Expand Down

1 comment on commit 952dc2d

@RS102839
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We refreshed webappmanager repo to restore the history from luna-sysmgr.

Please sign in to comment.