changeset 223:8be36a0d4239

Add coord_x(co) and coord_y(co)
author wycc
date Sun, 14 Dec 2008 12:53:45 +0800
parents f7057177abbb
children 29e1b2bffe4c
files include/mb_types.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
  *