From e01e4d6dbe80cf2010d865329eca58394092d745 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Wed, 11 Mar 2009 21:05:21 +0000 Subject: Formatting. svn-id: r39338 --- engines/cine/pal.cpp | 16 ++++++---------- 1 file 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); } -- cgit v1.2.3