LOGD("evas_info : %p, evas_info->eo : %p", evas_info, evas_info->eo);
if (info == UPDATE_VISIBILITY) {
- if (evas_info->visible == VISIBLE_FALSE) {
+ if (!evas_info->visible) {
evas_object_hide(evas_info->eo);
LOGI("object hide..");
} else {
/* update the screen only if visible is true */
/* if flush buffer is null, we cant keep screen */
- if (evas_info->keep_screen && (evas_info->visible != VISIBLE_FALSE) && evas_info->flush_buffer) {
+ if (evas_info->keep_screen && evas_info->visible && evas_info->flush_buffer) {
Evas_Native_Surface surf = { 0 };
rect_info result = { 0 };
evas_object_geometry_get(evas_info->eo, &evas_info->eo_size.x, &evas_info->eo_size.y, &evas_info->eo_size.w, &evas_info->eo_size.h);
return MM_ERROR_EVASRENDER_NOT_INITIALIZED;
}
- if (visible)
- evas_info->visible = VISIBLE_TRUE;
- else
- evas_info->visible = VISIBLE_FALSE;
+ evas_info->visible = visible;
if (evas_info->epipe) {
ret = ecore_pipe_write(evas_info->epipe, &visible, UPDATE_VISIBILITY);
return MM_ERROR_EVASRENDER_NOT_INITIALIZED;
}
- if (evas_info->visible == VISIBLE_FALSE)
- *visible = FALSE;
- else
- *visible = TRUE;
+ *visible = evas_info->visible;
MMER_FLEAVE();