aboutsummaryrefslogtreecommitdiff
path: root/graphics/surface.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-14 20:29:50 +0200
committerEugene Sandulenko2016-06-14 20:30:24 +0200
commit2bf0ebf31733988a940dc31fa0bd2367dcd91e68 (patch)
tree3fa63ea8eea2bac4aac3bbadb7b82aa333fd6948 /graphics/surface.cpp
parent3028d9202d4751c5b49ca6ec8a2f63b24fad3df4 (diff)
downloadscummvm-rg350-2bf0ebf31733988a940dc31fa0bd2367dcd91e68.tar.gz
scummvm-rg350-2bf0ebf31733988a940dc31fa0bd2367dcd91e68.tar.bz2
scummvm-rg350-2bf0ebf31733988a940dc31fa0bd2367dcd91e68.zip
GRAPHICS: Add possibility to specify Fill maskmode in the constructor
Diffstat (limited to 'graphics/surface.cpp')
-rw-r--r--graphics/surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/surface.cpp b/graphics/surface.cpp
index c5d4cf0cbd..5f8796566c 100644
--- a/graphics/surface.cpp
+++ b/graphics/surface.cpp
@@ -498,7 +498,7 @@ Graphics::Surface *Surface::convertTo(const PixelFormat &dstFormat, const byte *
return surface;
}
-FloodFill::FloodFill(Graphics::Surface *surface, uint32 oldColor, uint32 fillColor) {
+FloodFill::FloodFill(Graphics::Surface *surface, uint32 oldColor, uint32 fillColor, bool maskMode) {
_surface = surface;
_oldColor = oldColor;
_fillColor = fillColor;
@@ -506,7 +506,7 @@ FloodFill::FloodFill(Graphics::Surface *surface, uint32 oldColor, uint32 fillCol
_h = surface->h;
_mask = nullptr;
- _maskMode = false;
+ _maskMode = maskMode;
_visited = (byte *)calloc(_w * _h, 1);
}