ecore_x_image_get(Ecore_X_Image *im, Ecore_X_Drawable draw,
int x, int y, int sx, int sy, int w, int h)
{
- int ret = 1;
+ Eina_Bool ret = EINA_TRUE;
XErrorHandler ph;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
im->xim->width = w;
im->xim->height = h;
if (!XShmGetImage(_ecore_x_disp, draw, im->xim, x, y, 0xffffffff))
- ret = 0;
+ ret = EINA_FALSE;
ecore_x_sync();
}
XSetErrorHandler((XErrorHandler)ph);
if (_ecore_x_image_err)
- ret = 0;
+ ret = EINA_FALSE;
}
else
{
printf("currently unimplemented ecore_x_image_get without shm\n");
- ret = 0;
+ ret = EINA_FALSE;
}
return ret;
ecore_x_input_multi_select(Ecore_X_Window win)
{
#ifdef ECORE_XI2
- int i, find = 0;
+ int i;
+ Eina_Bool find = EINA_FALSE;
if (!_ecore_x_xi2_devs)
return 0;
XISetMask(mask, XI_ButtonRelease);
XISetMask(mask, XI_Motion);
XISelectEvents(_ecore_x_disp, win, &eventmask, 1);
- find = 1;
+ find = EINA_TRUE;
}
}
return find;
#else /* ifdef ECORE_XI2 */
- return 0;
+ return EINA_FALSE;
#endif /* ifdef ECORE_XI2 */
} /* ecore_x_input_multi_select */