diff options
author | Kari Salminen | 2009-03-28 16:07:56 +0000 |
---|---|---|
committer | Kari Salminen | 2009-03-28 16:07:56 +0000 |
commit | adbcfabcb1148009ab266b38c09275f6b01ba199 (patch) | |
tree | 240f45a568f687feba8b6599d2d598e28018ea45 /engines/cine/pal.h | |
parent | 329c3321e8eb62ce7b73daa41c4bed3e0880a452 (diff) | |
download | scummvm-rg350-adbcfabcb1148009ab266b38c09275f6b01ba199.tar.gz scummvm-rg350-adbcfabcb1148009ab266b38c09275f6b01ba199.tar.bz2 scummvm-rg350-adbcfabcb1148009ab266b38c09275f6b01ba199.zip |
Cine::Palette: Add empty() and isValid() functions.
svn-id: r39725
Diffstat (limited to 'engines/cine/pal.h')
-rw-r--r-- | engines/cine/pal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cine/pal.h b/engines/cine/pal.h index 1f55a4f73f..f63073763c 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -139,10 +139,14 @@ public: */ Palette &saturatedAddNormalizedGray(Palette& output, byte firstIndex, byte lastIndex, signed grayDividend, signed grayDenominator); + bool empty() const; uint colorCount() const; Palette &fillWithBlack(); + /*! \brief Is the palette valid? (Mostly just checks the color format for correctness) */ + bool isValid() const; + /*! \brief The original color format in which this palette was loaded. */ Graphics::PixelFormat colorFormat() const; |