From 6de5324742fd1ceaa00d9f361638b0c0a9882999 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sat, 2 Jul 2016 14:16:25 +0600 Subject: JANITORIAL: Fix a few warnings --- graphics/VectorRendererSpec.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'graphics/VectorRendererSpec.cpp') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index a0cc308816..b2314b0340 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -537,7 +537,7 @@ VectorRendererSpec(PixelFormat format) : _alphaMask((0xFF >> format.aLoss) << format.aShift) { _bitmapAlphaColor = _format.RGBToColor(255, 0, 255); - _clippingArea = Common::Rect(0, 0, 64 * 1024, 64 * 1024); + _clippingArea = Common::Rect(0, 0, 32767, 32767); } /**************************** @@ -1341,11 +1341,12 @@ drawCircleClip(int x, int y, int r, Common::Rect clipping) { switch (Base::_fillMode) { case kFillDisabled: - if (Base::_strokeWidth) + if (Base::_strokeWidth) { if (useClippingVersions) drawCircleAlgClip(x, y, r, _fgColor, kFillDisabled); else drawCircleAlg(x, y, r, _fgColor, kFillDisabled); + } break; case kFillForeground: @@ -1441,11 +1442,12 @@ drawSquareClip(int x, int y, int w, int h, Common::Rect clipping) { switch (Base::_fillMode) { case kFillDisabled: - if (Base::_strokeWidth) + if (Base::_strokeWidth) { if (useClippingVersions) drawSquareAlgClip(x, y, w, h, _fgColor, kFillDisabled); else drawSquareAlg(x, y, w, h, _fgColor, kFillDisabled); + } break; case kFillForeground: @@ -1467,11 +1469,12 @@ drawSquareClip(int x, int y, int w, int h, Common::Rect clipping) { case kFillGradient: VectorRendererSpec::drawSquareAlg(x, y, w, h, 0, kFillGradient); - if (Base::_strokeWidth) + if (Base::_strokeWidth) { if (useClippingVersions) drawSquareAlgClip(x, y, w, h, _fgColor, kFillDisabled); else drawSquareAlg(x, y, w, h, _fgColor, kFillDisabled); + } break; } -- cgit v1.2.3