Give the current scale factor to the script engine
Change-Id: I51fbc2c4db3a18e68c45e6beb9c2a17e8487f39a
Name: data-provider-master
Summary: Master service provider for liveboxes.
-Version: 0.25.13
+Version: 0.25.14
Release: 1
Group: HomeTF/Livebox
License: Flora License
HAPI void conf_update_size(void)
{
ecore_x_window_size_get(0, &g_conf.width, &g_conf.height);
+
g_conf.scale_width_factor = (double)g_conf.width / (double)BASE_W;
g_conf.scale_height_factor = (double)g_conf.height / (double)BASE_H;
}
int (*load)(void *handle, Evas *e, int w, int h);
int (*unload)(void *handle, Evas *e);
- int (*init)(void);
+ int (*init)(double scale);
int (*fini)(void);
};
char *target_id;
int target_len;
+
+ int (*handler)(struct inst_info *inst, struct block *block, int is_pd);
};
struct script_info {
goto errout;
}
- if (item->init() < 0) {
+ if (item->init(SCALE_WIDTH_FACTOR) < 0) {
ErrPrint("Failed to initialize script engine\n");
goto errout;
}