Mercurial > MadButterfly
changeset 1143:18d718a76a45
Fix incorrect index of y-scale in the matrix
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 24 Dec 2010 11:26:57 +0800 |
parents | dd6c60c6f41e |
children | 257beac7c982 |
files | include/mb_types.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) \