Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/xrender_xcb Modified Files: evas_engine.c evas_engine.h evas_engine_image.c Log Message: patches that i said were in - commit. (see my reply emails) also finish off a TODO item or 2 =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/xrender_xcb/evas_engine.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evas_engine.c 2 May 2006 07:28:49 -0000 1.4 +++ evas_engine.c 7 Jun 2006 23:30:15 -0000 1.5 @@ -79,6 +79,8 @@ static void *eng_image_data_put(void *data, void *image, DATA32 *image_data); static void *eng_image_alpha_set(void *data, void *image, int has_alpha); static int eng_image_alpha_get(void *data, void *image); +static void *eng_image_border_set(void *data, void *image, int l, int r, int t, int b); +static void eng_image_border_get(void *data, void *image, int *l, int *r, int *t, int *b); static void eng_image_draw(void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth); static char *eng_image_comment_get(void *data, void *image, char *key); static char *eng_image_format_get(void *data, void *image); @@ -667,6 +669,21 @@ return _xre_image_alpha_get((XR_Image *)image); } +static void * +eng_image_border_set(void *data, void *image, int l, int r, int t, int b) +{ + if (!image) return image; + _xre_image_border_set((XR_Image *)image, l, r, t, b); + return image; +} + +static void +eng_image_border_get(void *data, void *image, int *l, int *r, int *t, int *b) +{ + if (!image) return; + _xre_image_border_get((XR_Image *)image, l, r, t, b); +} + static void eng_image_draw(void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth) { @@ -803,6 +820,8 @@ ORD(image_data_put); ORD(image_alpha_set); ORD(image_alpha_get); + ORD(image_border_set); + ORD(image_border_get); ORD(image_draw); ORD(image_comment_get); ORD(image_format_get); =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/xrender_xcb/evas_engine.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- evas_engine.h 6 May 2006 06:22:57 -0000 1.3 +++ evas_engine.h 7 Jun 2006 23:30:15 -0000 1.4 @@ -61,6 +61,7 @@ XCBRenderPICTURE pic; unsigned char alpha : 1; unsigned char allocated : 1; + unsigned char bordered : 1; }; /* ximage support calls (ximage vs xshmimage, cache etc.) */ @@ -123,6 +124,8 @@ void _xre_image_data_put(XR_Image *im, void *data); void _xre_image_alpha_set(XR_Image *im, int alpha); int _xre_image_alpha_get(XR_Image *im); +void _xre_image_border_set(XR_Image *im, int l, int r, int t, int b); +void _xre_image_border_get(XR_Image *im, int *l, int *r, int *t, int *b); void _xre_image_surface_gen(XR_Image *im); void _xre_image_cache_set(int size); int _xre_image_cache_get(void); =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/xrender_xcb/evas_engine_image.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evas_engine_image.c 2 May 2006 07:28:49 -0000 1.4 +++ evas_engine_image.c 7 Jun 2006 23:30:15 -0000 1.5 @@ -476,6 +476,29 @@ } void +_xre_image_border_set(XR_Image *im, int l, int r, int t, int b) +{ + if (!im) return; + _xre_image_surface_gen(im); + if (l < 1) l = 0; + if (r < 1) r = 0; + if (t < 1) t = 0; + if (b < 1) b = 0; + if (im->surface) + { + if (l | r | t | b) + im->surface->bordered = 1; + else + im->surface->bordered = 0; + } +} + +void +_xre_image_border_get(XR_Image *im, int *l, int *r, int *t, int *b) +{ +} + +void _xre_image_surface_gen(XR_Image *im) { void *data = NULL; _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs