From: min7.choi Date: Wed, 7 Dec 2016 07:06:37 +0000 (+0900) Subject: Fix screen_orientation issue in wearable profile X-Git-Tag: submit/tizen_3.0/20161207.072642^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F103071%2F2;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Fix screen_orientation issue in wearable profile Change-Id: I5459be72dc0984114f4b6dd2a3f56baae90063bf Signed-off-by: min7.choi --- diff --git a/runtime/browser/native_window.cc b/runtime/browser/native_window.cc index 5712dff4c..3dbff5e68 100755 --- a/runtime/browser/native_window.cc +++ b/runtime/browser/native_window.cc @@ -174,11 +174,19 @@ void NativeWindow::Initialize() { rotation_callback, this); +#ifdef PROFILE_WEARABLE + if (w >= h) { + natural_orientation_ = ScreenOrientation::LANDSCAPE_PRIMARY; + } else { + natural_orientation_ = ScreenOrientation::PORTRAIT_PRIMARY; + } +#else if (w > h) { natural_orientation_ = ScreenOrientation::LANDSCAPE_PRIMARY; } else { natural_orientation_ = ScreenOrientation::PORTRAIT_PRIMARY; } +#endif elm_win_indicator_mode_set(window_, ELM_WIN_INDICATOR_SHOW);