// do not insert to db
- int setas_data = (int)evas_object_data_get(obj, "setas_type");
+ size_t setas_data = (size_t)evas_object_data_get(obj, "setas_type");
ivug_set_screen_type type = (ivug_set_screen_type)setas_data;
- int setas_mode = (int)evas_object_data_get(obj, "setas_mode");
+ size_t setas_mode = (size_t)evas_object_data_get(obj, "setas_mode");
ivug_setas_mode mode = (ivug_setas_mode)setas_mode;
const char* homescreen_path = IVUG_HOME_SCREEN_PATH;
static void
_on_msg_load_failed(void *data, Evas_Object *obj, void *event_info)
{
- int error = (int)event_info;
+ size_t error = (size_t)event_info;
const char *szMsg = NULL;
} Evas_Load_Error; /**< Load error you can get from loading of files - see evas_load_error_str() too */
#endif
- Evas_Load_Error error = static_cast<Evas_Load_Error>(reinterpret_cast<int>(event_info));
+ Evas_Load_Error error = static_cast<Evas_Load_Error>(reinterpret_cast<size_t>(event_info));
// Evas_Load_Error error = evas_object_image_load_error_get(ivug_image_internal_image_get(si->photocam));
if ( error != EVAS_LOAD_ERROR_NONE )
IV_ASSERT(obj != NULL);
IV_ASSERT(data != NULL);
- MSG_HIGH( "response callback=%d",(int)event_info);
+ MSG_HIGH( "response callback=%d", (size_t)event_info);
IvugCropView *pCropView = static_cast<IvugCropView *>(data);
evas_object_hide(obj); // popup
// do not insert to db
- int setas_data = (int)evas_object_data_get(obj, "setas_type");
+ size_t setas_data = (size_t)evas_object_data_get(obj, "setas_type");
ivug_set_screen_type type = (ivug_set_screen_type)setas_data;
const char* homescreen_path = IVUG_HOME_SCREEN_PATH;
Ivug_MainView *pMainView = (Ivug_MainView *)data;
IV_ASSERT(pMainView != NULL);
- int response_id = (int)event_info;
+ size_t response_id = (size_t)event_info;
if(response_id == POPUP_RESPONSE_CANCEL)
{
MSG_MAIN_HIGH("cancel selected");
static void
_on_rename_selected(void *data, Evas_Object *obj, void *event_info)
{
- int response_id = (int)event_info;
+ size_t response_id = (size_t)event_info;
IV_ASSERT(data != NULL);
Ivug_MainView *pMainView = (Ivug_MainView *)data;
///////////////////////////////////////////////////////////////////////////////////////////////////
//
//
-static bool _destory_slideshow_and_ug(Ivug_MainView *pMainView, int state, bool bMmc_out);
+static bool _destory_slideshow_and_ug(Ivug_MainView *pMainView, size_t state, bool bMmc_out);
static void _on_slideshow_finished(void *data, Evas_Object *obj, void *event_info);
void _update_title(Ivug_MainView *pMainView)
// Destroy copy popup
pMainView->longpress_popup = NULL; // object is removed automatically
- int response = (int)event_info;
+ size_t response = (size_t)event_info;
Media_Item *mtiem = ivug_slider_get_item(pMainView->slider);
Media_Data *mdata = ivug_medialist_get_data(mtiem);
}
static bool _destory_slideshow_and_ug(Ivug_MainView *pMainView,
- int state,
+ size_t state,
bool bMmc_out)
{
IV_ASSERT(pMainView != NULL);
static void
_ivug_main_drm_popup_purchase_cb(void *data, Evas_Object *obj, void *event_info)
{
- int response_id = (int)event_info;
+ size_t response_id = (size_t)event_info;
IV_ASSERT(data != NULL);
Ivug_MainView *pMainView = (Ivug_MainView *)data;
static void
_ivug_main_drm_popup_response_cb(void *data, Evas_Object *obj, void *event_info)
{
- int response_id = (int)event_info;
+ size_t response_id = (size_t)event_info;
IV_ASSERT(data != NULL);
Ivug_MainView *pMainView = (Ivug_MainView *)data;
pMainView->popup_timer = NULL;
}
- if((int)event_info == LONGTAP_CANCELED)
+ if((size_t)event_info == LONGTAP_CANCELED)
{
if(pMainView->longpress_popup)
{
IV_ASSERT(data != NULL);
Ivug_MainView *pMainView = (Ivug_MainView *)data;
- int ss_state = (int)event_info;
+ size_t ss_state = (size_t)event_info;
bool bDestoryed = false;
bDestoryed = _destory_slideshow_and_ug(pMainView, ss_state, false);
if (bDestoryed) {
} Evas_Load_Error; /**< Load error you can get from loading of files - see evas_load_error_str() too */
#endif
- Evas_Load_Error error = static_cast<Evas_Load_Error>((int)event_info);
+ Evas_Load_Error error = static_cast<Evas_Load_Error>((size_t)event_info);
if ( error != EVAS_LOAD_ERROR_NONE )
{
} Evas_Load_Error; /**< Load error you can get from loading of files - see evas_load_error_str() too */
#endif
- Evas_Load_Error error = static_cast<Evas_Load_Error>((int)event_info);
+ Evas_Load_Error error = static_cast<Evas_Load_Error>((size_t)event_info);
if ( error != EVAS_LOAD_ERROR_NONE )
{
static bool _destory_slideshow_and_ug(Ivug_SlideShowView *pSSView,
- int state,
+ size_t state,
bool bMmc_out)
{
IV_ASSERT(pSSView != NULL);
Ivug_SlideShowView *pSSView = static_cast<Ivug_SlideShowView *>(data);
- int ss_state = (int)event_info;
+ size_t ss_state = (size_t) event_info;
bool bDestoryed = false;
bDestoryed = _destory_slideshow_and_ug(pSSView, ss_state, false);
}
%ifarch %{arm}
%define ARCH arm
+%ifarch aarch64
+CXXFLAGS+=" -D_ARCH_ARM -march=armv8-a+fp+simd"
+CFLAGS+=" -D_ARCH_ARM -march=armv8-a+fp+simd"
+%else
CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon -mfloat-abi=softfp "
CFLAGS+=" -D_ARCH_ARM_ -mfpu=neon -mfloat-abi=softfp "
%else
%make_install
mkdir -p %{buildroot}/usr/share/license
+%ifnarch aarch64
execstack -c %{buildroot}%{_ugdir}/lib/libug-image-viewer-efl.so.0.1.0
+%endif
%post
chown -R 5000:5000 %{_datadir}/ug-image-viewer-efl
return;
}
- Evas_Load_Error error = static_cast<Evas_Load_Error>(reinterpret_cast<int>(event_info));
+ Evas_Load_Error error = static_cast<Evas_Load_Error>(reinterpret_cast<size_t>(event_info));
if ( error != EVAS_LOAD_ERROR_NONE )
{
MSG_HIGH("Photocam Pre-loaded. File=%s", ivug_get_filename(mdata->filepath));
Evas_Event_Mouse_Move *ev = (Evas_Event_Mouse_Move *) event_info;
- eGripType grip = static_cast<eGripType> (reinterpret_cast<int>\r(evas_object_data_get(obj, "grip_type")));
+ eGripType grip = static_cast<eGripType> (reinterpret_cast<size_t>\r(evas_object_data_get(obj, "grip_type")));
if ( ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD )
{
Evas_Event_Mouse_Move *ev = (Evas_Event_Mouse_Move *) event_info;
- eGripType grip = static_cast<eGripType> (reinterpret_cast<int>\r(evas_object_data_get(obj, "grip_type")));
+ eGripType grip = static_cast<eGripType> (reinterpret_cast<size_t>\r(evas_object_data_get(obj, "grip_type")));
if ( ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD )
{