# HG changeset patch # User Thinker K.F. Li # Date 1258530248 -28800 # Node ID d984a6672be7b6d5d4a7faca5fd9f300cc3f0087 # Parent d38aca825822900c7046748cd29b0a67adb8c57f Fix bug of translate between co_aix and SkScalar. It is a misunderstanding of SkScalar. We change the code to fix the issue. diff -r d38aca825822 -r d984a6672be7 src/graph_engine_skia.cpp --- a/src/graph_engine_skia.cpp Sun Nov 15 16:23:21 2009 +0800 +++ b/src/graph_engine_skia.cpp Wed Nov 18 15:44:08 2009 +0800 @@ -98,8 +98,8 @@ #define PI 3.1415926535897931 -#define CO_AIX_2_SKSCALAR(a) ((a) * 65536) -#define SKSCALAR_2_CO_AIX(a) ((co_aix)(a) / 65536) +#define CO_AIX_2_SKSCALAR(a) ((SkScalar)a) +#define SKSCALAR_2_CO_AIX(a) ((co_aix)(a)) #define MB_MATRIX_2_SKMATRIX(sk, mb) { \ (sk).setScaleX(CO_AIX_2_SKSCALAR((mb)[0])); \ (sk).setSkewX(CO_AIX_2_SKSCALAR((mb)[1])); \