diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-28 13:53:13 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-28 13:53:13 +0000 |
commit | 9ac4a89d35df3d581886a84df421161418707fd6 (patch) | |
tree | 19f0a1041b8bf7250e9f5b673527132783a7cde4 | |
parent | 13649ce32f41774a49760e50083c13c349cb0b5c (diff) |
Change output format of dump() to make VS2008 happy.
codereview.appspot.com/4629071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1734 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/utils/SkMatrix44.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp index 3bf494946e..f3f98a5279 100644 --- a/src/utils/SkMatrix44.cpp +++ b/src/utils/SkMatrix44.cpp @@ -333,17 +333,20 @@ void SkMatrix44::map(const SkScalar src[4], SkScalar dst[4]) const { /////////////////////////////////////////////////////////////////////////////// void SkMatrix44::dump() const { - SkDebugf("[%g %g %g %g][%g %g %g %g][%g %g %g %g][%g %g %g %g]\n", + static const char* format = + "[%g %g %g %g][%g %g %g %g][%g %g %g %g][%g %g %g %g]\n"; #if 0 - fMat[0][0], fMat[0][1], fMat[0][2], fMat[0][3], - fMat[1][0], fMat[1][1], fMat[1][2], fMat[1][3], - fMat[2][0], fMat[2][1], fMat[2][2], fMat[2][3], - fMat[3][0], fMat[3][1], fMat[3][2], fMat[3][3]); -#else + SkDebugf(format, fMat[0][0], fMat[1][0], fMat[2][0], fMat[3][0], fMat[0][1], fMat[1][1], fMat[2][1], fMat[3][1], fMat[0][2], fMat[1][2], fMat[2][2], fMat[3][2], fMat[0][3], fMat[1][3], fMat[2][3], fMat[3][3]); +#else + SkDebugf(format, + fMat[0][0], fMat[0][1], fMat[0][2], fMat[0][3], + fMat[1][0], fMat[1][1], fMat[1][2], fMat[1][3], + fMat[2][0], fMat[2][1], fMat[2][2], fMat[2][3], + fMat[3][0], fMat[3][1], fMat[3][2], fMat[3][3]); #endif } @@ -383,6 +386,3 @@ SkMatrix44::operator SkMatrix() const { return dst; } - - - |