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
This commit is contained in:
tomhudson@google.com 2011-06-28 13:53:13 +00:00
parent 13649ce32f
commit 9ac4a89d35

View File

@ -333,17 +333,20 @@ void SkMatrix44::map(const SkScalar src[4], SkScalar dst[4]) const {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
void SkMatrix44::dump() 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 #if 0
fMat[0][0], fMat[0][1], fMat[0][2], fMat[0][3], SkDebugf(format,
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
fMat[0][0], fMat[1][0], fMat[2][0], fMat[3][0], 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][1], fMat[1][1], fMat[2][1], fMat[3][1],
fMat[0][2], fMat[1][2], fMat[2][2], fMat[3][2], fMat[0][2], fMat[1][2], fMat[2][2], fMat[3][2],
fMat[0][3], fMat[1][3], fMat[2][3], fMat[3][3]); 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 #endif
} }
@ -383,6 +386,3 @@ SkMatrix44::operator SkMatrix() const {
return dst; return dst;
} }