Apply default app scale factor
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 7 Oct 2014 00:52:49 +0000 (09:52 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 7 Oct 2014 00:52:49 +0000 (09:52 +0900)
Every DBox should have to be developed for Kiran(WVGA).
Then they will be scaled by UIFW automatically.

[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I30d2f1d2fc11d768fc885e96fefc633703ed131f

src/main.c

index 13c2028..711f774 100644 (file)
@@ -55,8 +55,9 @@
 #include "dbox.h"
 #include "conf.h"
 
-#define TEXT_CLASS              "tizen"
-#define DEFAULT_FONT_SIZE       -100
+#define TEXT_CLASS         "tizen"
+#define DEFAULT_FONT_SIZE  -100
+#define WVGA_DEFAULT_SCALE 1.8f
 
 #if !defined(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME)
 #define VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME "db/setting/accessibility/font_name"
@@ -123,8 +124,8 @@ static void font_changed_cb(void *user_data)
        s_info.font_name = font_name;
        DbgPrint("Font name is changed to %s(%p)\n", s_info.font_name, s_info.font_name);
 
-       /*!
-        * \NOTE
+       /**
+        * @NOTE
         * Try to update all dynamicboxes
         */
        edje_text_class_set(TEXT_CLASS, s_info.font_name, DEFAULT_FONT_SIZE);
@@ -391,6 +392,8 @@ static bool app_create(void *argv)
 {
        int ret;
 
+       elm_app_base_scale_set(WVGA_DEFAULT_SCALE);
+
        dynamicbox_conf_init();
        if (!dynamicbox_conf_is_loaded()) {
                ret = dynamicbox_conf_load();
@@ -423,8 +426,8 @@ static bool app_create(void *argv)
                DbgPrint("Livebox service init: %d\n", ret);
        }
 
-       /*
-        * \note
+       /**
+        * @note
         * Slave is not able to initiate system, before
         * receive its name from the master
         *