bugfix: UI has wrong position in landscape mode off
authordeasung.kim <deasung.kim@samsung.com>
Mon, 2 May 2011 10:48:05 +0000 (19:48 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Mon, 2 May 2011 10:49:56 +0000 (19:49 +0900)
Change-Id: Id0d06223292d353d412dea827e385d149f0185da

src/cbhm_main.c

index 29b70d2..c54b8d0 100644 (file)
@@ -16,6 +16,7 @@
 #include "clipdrawer.h"
 #include "scrcapture.h"
 
+#include <vconf.h>
 #include <appcore-efl.h>
 
 // FIXME: how to remove g_main_ad? 
@@ -101,6 +102,13 @@ int get_rotation_degree()
 {
        int angle;
        enum appcore_rm mode;
+
+       if (!vconf_get_bool(VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL, &rotate_lock))
+       {
+               if (SETTING_ON_OFF_BTN_ON == rotate_lock)
+                       return 0;
+       }
+
        appcore_get_rotation_state(&mode);
        if (mode == -1)
                return 0;