# HG changeset patch # User Thinker K.F. Li # Date 1293161217 -28800 # Node ID 18d718a76a454911ddc851c15f5f0f529f116320 # Parent dd6c60c6f41eb22d0bbb44774b7543bfc4b262e8 Fix incorrect index of y-scale in the matrix diff -r dd6c60c6f41e -r 18d718a76a45 include/mb_types.h --- a/include/mb_types.h Thu Dec 23 11:04:05 2010 +0800 +++ b/include/mb_types.h Fri Dec 24 11:26:57 2010 +0800 @@ -326,9 +326,9 @@ */ #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0) #define coord_set_scalex(co,sx) do {(co)->matrix[0] = sx;} while(0) -#define coord_set_scaley(co,sy) do {(co)->matrix[3] = sy;} while(0) +#define coord_set_scaley(co,sy) do {(co)->matrix[4] = sy;} while(0) #define coord_scalex(co) ((co)->matrix[0]) -#define coord_scaley(co) ((co)->matrix[3]) +#define coord_scaley(co) ((co)->matrix[4]) #define coord_x(co) ((co)->matrix[2]) #define coord_y(co) ((co)->matrix[5]) #define FOR_COORD_MEMBERS(coord, geo) \