aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKari Salminen2009-03-11 21:05:21 +0000
committerKari Salminen2009-03-11 21:05:21 +0000
commite01e4d6dbe80cf2010d865329eca58394092d745 (patch)
treea70e4cbb3df89dcf5325c3476df09a39cf74cc58
parentc6767861463924aa0cfc5743237506baa0330083 (diff)
downloadscummvm-rg350-e01e4d6dbe80cf2010d865329eca58394092d745.tar.gz
scummvm-rg350-e01e4d6dbe80cf2010d865329eca58394092d745.tar.bz2
scummvm-rg350-e01e4d6dbe80cf2010d865329eca58394092d745.zip
Formatting.
svn-id: r39338
-rw-r--r--engines/cine/pal.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index e6c5c9d43e..b8b2580cf0 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -190,6 +190,7 @@ Palette &Palette::saturatedAddColor(byte firstIndex, byte lastIndex, signed r, s
for (uint i = firstIndex; i <= lastIndex; i++)
saturatedAddColor(i, r, g, b);
+
return *this;
}
@@ -240,8 +241,7 @@ Palette &Palette::load(const byte *colors, const Graphics::PixelFormat format, c
return *this;
}
-byte *Palette::save(byte *colors, const uint numBytes, const Graphics::PixelFormat format) const
-{
+byte *Palette::save(byte *colors, const uint numBytes, const Graphics::PixelFormat format) const {
assert(numBytes <= format.bytesPerPixel * colorCount()); // Make sure there's enough output space
// Clear the part of the output palette we're going to be writing to with all black
@@ -259,23 +259,19 @@ byte *Palette::save(byte *colors, const uint numBytes, const Graphics::PixelForm
return colors;
}
-byte *Palette::saveCineLowPal(byte *colors, const uint numBytes) const
-{
+byte *Palette::saveCineLowPal(byte *colors, const uint numBytes) const {
return save(colors, numBytes, kLowPalFormat);
}
-byte *Palette::saveCineHighPal(byte *colors, const uint numBytes) const
-{
+byte *Palette::saveCineHighPal(byte *colors, const uint numBytes) const {
return save(colors, numBytes, kHighPalFormat);
}
-byte *Palette::saveOrigFormat(byte *colors, const uint numBytes) const
-{
+byte *Palette::saveOrigFormat(byte *colors, const uint numBytes) const {
return save(colors, numBytes, colorFormat());
}
-byte *Palette::saveSystemFormat(byte *colors, const uint numBytes) const
-{
+byte *Palette::saveSystemFormat(byte *colors, const uint numBytes) const {
return save(colors, numBytes, kSystemPalFormat);
}