#include "script_port.h"
#define TEXT_CLASS "tizen"
+#define BASE_WIDTH 720.0f
#define PUBLIC __attribute__((visibility("default")))
.size = -100,
};
+static inline double scale_get(void)
+{
+ int width;
+ int height;
+ ecore_x_window_size_get(0, &width, &height);
+ return (double)width / BASE_WIDTH;
+}
+
/*!
* \NOTE
* Reservce this for future use
Evas_Coord tmp_h;
if (img_opt.width >= 0 && img_opt.height >= 0) {
- part_w = img_opt.width;
- part_h = img_opt.height;
+ part_w = img_opt.width * scale_get();
+ part_h = img_opt.height * scale_get();
} else {
edje_object_part_geometry_get(edje, part, NULL, NULL, &part_w, &part_h);
}
int ret;
/* ecore is already initialized */
edje_init();
+ edje_scale_set(scale_get());
s_info.property_handler = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY, property_cb, NULL);
if (!s_info.property_handler)
PUBLIC int script_fini(void)
{
-
vconf_ignore_key_changed("db/setting/accessibility/font_name", font_name_cb);
vconf_ignore_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, font_size_cb);
ecore_event_handler_del(s_info.property_handler);