aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-02 14:16:25 +0600
committerEugene Sandulenko2016-07-03 12:24:55 +0200
commit6de5324742fd1ceaa00d9f361638b0c0a9882999 (patch)
tree4a183008d1c981d017554a09278693983fcc7515 /graphics/VectorRendererSpec.cpp
parentcea58cc61c12206f41b64ba0094655dcd84b57af (diff)
downloadscummvm-rg350-6de5324742fd1ceaa00d9f361638b0c0a9882999.tar.gz
scummvm-rg350-6de5324742fd1ceaa00d9f361638b0c0a9882999.tar.bz2
scummvm-rg350-6de5324742fd1ceaa00d9f361638b0c0a9882999.zip
JANITORIAL: Fix a few warnings
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp11
1 files changed, 7 insertions, 4 deletions
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;
}