diff options
-rw-r--r-- | gm/distantclip.cpp | 10 | ||||
-rw-r--r-- | src/utils/win/SkWGL_win.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gm/distantclip.cpp b/gm/distantclip.cpp index 6691d2a547..6fd14206c4 100644 --- a/gm/distantclip.cpp +++ b/gm/distantclip.cpp @@ -37,10 +37,10 @@ protected: rec->drawColor(0xffff0000); rec->save(); SkRect r = { - SkIntToScalar(-extents), - SkIntToScalar(offset - extents), - SkIntToScalar(extents), - SkIntToScalar(offset + extents) + SkIntToScalar(-extents), + SkIntToScalar(offset - extents), + SkIntToScalar(extents), + SkIntToScalar(offset + extents) }; SkPath p; p.addRoundRect(r, 5, 5); @@ -56,7 +56,7 @@ protected: // Finally we play the part of that second picture that should be green into the canvas. canvas->save(); - canvas->translate(SkIntToScalar(extents / 2), + canvas->translate(SkIntToScalar(extents / 2), SkIntToScalar(-(offset - extents / 2))); pict2.draw(canvas); canvas->restore(); diff --git a/src/utils/win/SkWGL_win.cpp b/src/utils/win/SkWGL_win.cpp index 922ba286d8..48b270d079 100644 --- a/src/utils/win/SkWGL_win.cpp +++ b/src/utils/win/SkWGL_win.cpp @@ -122,8 +122,8 @@ int SkWGLExtensions::selectFormat(const int formats[], SK_WGL_COLOR_SAMPLES, }; int answers[2]; - int queryAttrCnt = supportsCoverage ? - SK_ARRAY_COUNT(queryAttrs) : + int queryAttrCnt = supportsCoverage ? + SK_ARRAY_COUNT(queryAttrs) : SK_ARRAY_COUNT(queryAttrs) - 1; this->getPixelFormatAttribiv(dc, formats[i], |