From: reed@google.com Date: Mon, 12 Dec 2011 22:15:18 +0000 (+0000) Subject: fix positioning for scalar=fixed, still need to fix actual mode X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~17138 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb85630fd6105189df316bd3cde662a616ac1180;p=platform%2Fupstream%2FlibSkiaSharp.git fix positioning for scalar=fixed, still need to fix actual mode git-svn-id: http://skia.googlecode.com/svn/trunk@2862 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp index 21400fb..4002798 100644 --- a/gm/arithmode.cpp +++ b/gm/arithmode.cpp @@ -114,7 +114,7 @@ protected: const SkScalar* stop = k + SK_ARRAY_COUNT(K); SkScalar y = 0; SkScalar x = 0; - SkScalar gap = src.width() + SkIntToScalar(20); + SkScalar gap = SkIntToScalar(src.width() + 20); while (k < stop) { SkScalar x = 0; SkBitmap res = make_arith(src, dst, k); @@ -126,7 +126,7 @@ protected: x += gap; show_k_text(canvas, x, y, k); k += 4; - y += src.height() + SkIntToScalar(12); + y += SkIntToScalar(src.height() + 12); } }