From eb85630fd6105189df316bd3cde662a616ac1180 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 12 Dec 2011 22:15:18 +0000 Subject: 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 --- gm/arithmode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/arithmode.cpp') diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp index 21400fb22b..40027982db 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); } } -- cgit v1.2.3