# HG changeset patch # User Thinker K.F. Li # Date 1249459847 -28800 # Node ID 5c9e2a8a4bd8ffd7faecedf271ba13c3ade0c332 # Parent a417fd980228e499053e54b2ea3ab816edf2d85c Remove all "cairo" wording. - all cairo are replaced by mbe version - except pango relative ones. diff -r a417fd980228 -r 5c9e2a8a4bd8 include/mb_graph_engine.h --- a/include/mb_graph_engine.h Wed Aug 05 15:54:44 2009 +0800 +++ b/include/mb_graph_engine.h Wed Aug 05 16:10:47 2009 +0800 @@ -3,6 +3,7 @@ #include #include +#include #include "mb_img_ldr.h" /*! \defgroup mb_graph_engine MadButterfly Graphic Engine diff -r a417fd980228 -r 5c9e2a8a4bd8 src/X_main.c --- a/src/X_main.c Wed Aug 05 15:54:44 2009 +0800 +++ b/src/X_main.c Wed Aug 05 16:10:47 2009 +0800 @@ -5,7 +5,6 @@ #include #include #include "mb_graph_engine.h" -#include #include #include diff -r a417fd980228 -r 5c9e2a8a4bd8 src/X_supp.c --- a/src/X_supp.c Wed Aug 05 15:54:44 2009 +0800 +++ b/src/X_supp.c Wed Aug 05 16:10:47 2009 +0800 @@ -4,7 +4,6 @@ #include #include #include "mb_graph_engine.h" -#include #include "mb_redraw_man.h" #include "mb_timer.h" #include "mb_X_supp.h" diff -r a417fd980228 -r 5c9e2a8a4bd8 src/event.c --- a/src/event.c Wed Aug 05 15:54:44 2009 +0800 +++ b/src/event.c Wed Aug 05 16:10:47 2009 +0800 @@ -558,12 +558,12 @@ } } -/*! \brief Implement exactly point testing with Cairo. +/*! \brief Implement exactly point testing with MB graphic engine. * * \note This function should not be called directly. Call * _shape_pos_is_in() insteaded. */ -static int _shape_pos_is_in_cairo(shape_t *shape, co_aix x, co_aix y, +static int _shape_pos_is_in_mbe(shape_t *shape, co_aix x, co_aix y, int *in_stroke, mbe_t *cr) { draw_shape_path(shape, cr); if(shape->fill) { @@ -592,7 +592,7 @@ if(!r) return FALSE; - r = _shape_pos_is_in_cairo(shape, x, y, in_stroke, cr); + r = _shape_pos_is_in_mbe(shape, x, y, in_stroke, cr); mbe_new_path(cr); if(!r) return FALSE; @@ -735,7 +735,7 @@ * coord is relative less than shapes. Check areas of coord can * skip sub-trees and avoid useless heavy computation. For shapes, * it not only check overlay of area. It also check overlay by - * actually drawing on a cairo surface. + * actually drawing on a mbe surface. */ static int _is_obj_objs_overlay(mb_obj_t *obj, mb_obj_t *others_root, @@ -825,7 +825,7 @@ /*! \brief Test if two objects are overlaid. * - * \todo Detect overlay in better way with cairo. + * \todo Detect overlay in better way with mbe. * \note This function cost heavy on CPU power. */ int mb_objs_are_overlay(redraw_man_t *rdman,