diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-07 21:55:56 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-07 21:55:56 +0000 |
commit | 07faed110275048c83a55ae39042da2c9d916108 (patch) | |
tree | 4180d282e2695bf8b9572b8b8eb0ed706c075a90 /experimental | |
parent | cf385232c45b7692eaf31260fe650457f400521a (diff) |
Setting perspective in fixed point.
http://codereview.appspot.com/5088043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2435 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/Debugger/SkDebugDumper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/experimental/Debugger/SkDebugDumper.cpp b/experimental/Debugger/SkDebugDumper.cpp index 2f63462dc3..29b5049184 100644 --- a/experimental/Debugger/SkDebugDumper.cpp +++ b/experimental/Debugger/SkDebugDumper.cpp @@ -58,9 +58,9 @@ static SkString dumpMatrix(SkDumpCanvas* canvas) { SkScalarToFloat(m.get(SkMatrix::kMSkewX)), SkScalarToFloat(m.get(SkMatrix::kMSkewY))); str.appendf("Perspective (%0.4g, %0.4g, %0.4g) ", - SkScalarToFloat(m.get(SkMatrix::kMPersp0)), - SkScalarToFloat(m.get(SkMatrix::kMPersp1)), - SkScalarToFloat(m.get(SkMatrix::kMPersp2))); + SkScalarToFloat(SkPerspToScalar(m.get(SkMatrix::kMPersp0))), + SkScalarToFloat(SkPerspToScalar(m.get(SkMatrix::kMPersp1))), + SkScalarToFloat(SkPerspToScalar(m.get(SkMatrix::kMPersp2)))); return str; } @@ -150,4 +150,4 @@ void SkDebugDumper::dump(SkDumpCanvas* canvas, SkDumpCanvas::Verb verb, state->post(); } } -}
\ No newline at end of file +} |