aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2019-09-08 19:55:23 +0200
committerBastien Bouclet2019-09-08 19:55:23 +0200
commit042e1964882d0d1387349f3a9d40d5aa7fe3399f (patch)
treede06456efa776f4ca9c22f4eefcdc3a11bf91885 /graphics/VectorRendererSpec.cpp
parent155dd28f1869daa18be3fa17443dcb296c73e84a (diff)
downloadscummvm-rg350-042e1964882d0d1387349f3a9d40d5aa7fe3399f.tar.gz
scummvm-rg350-042e1964882d0d1387349f3a9d40d5aa7fe3399f.tar.bz2
scummvm-rg350-042e1964882d0d1387349f3a9d40d5aa7fe3399f.zip
GRAPHICS: Fix VectorRenderer's colorFillClip to apply the clipping rect
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 2f7164cc9b..a13c281327 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -474,6 +474,7 @@ void colorFillClip(PixelType *first, PixelType *last, PixelType color, int realX
if (realX < clippingArea.left) {
int diff = (clippingArea.left - realX);
realX += diff;
+ first += diff;
count -= diff;
}