diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 22:15:18 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 22:15:18 +0000 |
commit | eb85630fd6105189df316bd3cde662a616ac1180 (patch) | |
tree | 20fa3049ee68feaa1d96d758ead6090f453930da | |
parent | eb0fa29fc468e3f02d5a3b6456effd10b984f6ba (diff) |
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
-rw-r--r-- | gm/arithmode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |