# HG changeset patch # User wycc # Date 1229230425 -28800 # Node ID 8be36a0d4239cb2fc7a2c986a0b3acdc326ad92f # Parent f7057177abbbf52a60654c2c6d5e1fe8547919f4 Add coord_x(co) and coord_y(co) diff -r f7057177abbb -r 8be36a0d4239 include/mb_types.h --- a/include/mb_types.h Sun Dec 14 12:51:55 2008 +0800 +++ b/include/mb_types.h Sun Dec 14 12:53:45 2008 +0800 @@ -186,6 +186,8 @@ #define coord_set_scaley(ci,sy) do {(co)->matrux[3] = sy;} while(0) #define coord_scalex(ci) ((co)->matrix[0]) #define coord_scaley(ci) ((co)->matrix[3]) +#define coord_x(ci) ((co)->matrix[2]) +#define coord_y(ci) ((co)->matrix[5]) /*! \brief A grahpic shape. *