diff options
-rw-r--r-- | engines/cine/pal.cpp | 2 | ||||
-rw-r--r-- | engines/cine/pal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp index 9210fae8ab..f383b0d9f2 100644 --- a/engines/cine/pal.cpp +++ b/engines/cine/pal.cpp @@ -269,7 +269,7 @@ Palette &Palette::saturatedAddNormalizedGray(Palette& output, byte firstIndex, b } // a.k.a. transformColor -Cine::Palette::Color Palette::saturatedAddColor(Cine::Palette::Color baseColor, signed r, signed g, signed b) const { +Cine::Palette::Color &Palette::saturatedAddColor(Cine::Palette::Color baseColor, signed r, signed g, signed b) const { Cine::Palette::Color result; result.r = CLIP<int>(baseColor.r + r, 0, _format.rMax()); result.g = CLIP<int>(baseColor.g + g, 0, _format.gMax()); diff --git a/engines/cine/pal.h b/engines/cine/pal.h index 4d32aca408..149677184e 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -186,7 +186,7 @@ public: private: void setColorFormat(const Graphics::PixelFormat format); - Cine::Palette::Color saturatedAddColor(Cine::Palette::Color baseColor, signed r, signed g, signed b) const; + Cine::Palette::Color &saturatedAddColor(Cine::Palette::Color baseColor, signed r, signed g, signed b) const; private: Graphics::PixelFormat _format; ///< The used source color format |