comparison src/shape_image.c @ 450:a417fd980228

Replace cairo_format_t with mb_img_fmt_t. - Replace all CAIRO_FORAMT_* with MB_IFMT_* - wrap functions return or are argumented with image format.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 05 Aug 2009 15:54:44 +0800
parents 16116d84bc5e
children ba64f928542b
comparison
equal deleted inserted replaced
449:c525edac917e 450:a417fd980228
68 * \param img_data is image data whose owner-ship is transfered. 68 * \param img_data is image data whose owner-ship is transfered.
69 */ 69 */
70 shape_t *rdman_shape_image_new(redraw_man_t *rdman, 70 shape_t *rdman_shape_image_new(redraw_man_t *rdman,
71 co_aix x, co_aix y, co_aix w, co_aix h) { 71 co_aix x, co_aix y, co_aix w, co_aix h) {
72 sh_image_t *img; 72 sh_image_t *img;
73 mbe_format_t fmt; 73 mb_img_fmt_t fmt;
74 int r; 74 int r;
75 75
76 img = O_ALLOC(sh_image_t); 76 img = O_ALLOC(sh_image_t);
77 if(img == NULL) 77 if(img == NULL)
78 return NULL; 78 return NULL;