comparison include/mb_types.h @ 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 d09f603438d8
children bae104d8d247
comparison
equal deleted inserted replaced
1142:dd6c60c6f41e 1143:18d718a76a45
324 * The x,y,sx,sy are all in co_aix type. 324 * The x,y,sx,sy are all in co_aix type.
325 * 325 *
326 */ 326 */
327 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0) 327 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0)
328 #define coord_set_scalex(co,sx) do {(co)->matrix[0] = sx;} while(0) 328 #define coord_set_scalex(co,sx) do {(co)->matrix[0] = sx;} while(0)
329 #define coord_set_scaley(co,sy) do {(co)->matrix[3] = sy;} while(0) 329 #define coord_set_scaley(co,sy) do {(co)->matrix[4] = sy;} while(0)
330 #define coord_scalex(co) ((co)->matrix[0]) 330 #define coord_scalex(co) ((co)->matrix[0])
331 #define coord_scaley(co) ((co)->matrix[3]) 331 #define coord_scaley(co) ((co)->matrix[4])
332 #define coord_x(co) ((co)->matrix[2]) 332 #define coord_x(co) ((co)->matrix[2])
333 #define coord_y(co) ((co)->matrix[5]) 333 #define coord_y(co) ((co)->matrix[5])
334 #define FOR_COORD_MEMBERS(coord, geo) \ 334 #define FOR_COORD_MEMBERS(coord, geo) \
335 for(geo = STAILQ_HEAD((coord)->members); \ 335 for(geo = STAILQ_HEAD((coord)->members); \
336 geo != NULL; \ 336 geo != NULL; \