changeset 483:d984a6672be7 Android_Skia

Fix bug of translate between co_aix and SkScalar. It is a misunderstanding of SkScalar. We change the code to fix the issue.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 18 Nov 2009 15:44:08 +0800
parents d38aca825822
children 5af3178ccdef
files src/graph_engine_skia.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]));	\