diff options
author | Kari Salminen | 2009-04-01 17:16:22 +0000 |
---|---|---|
committer | Kari Salminen | 2009-04-01 17:16:22 +0000 |
commit | b6f6fdced4a2d9541b887d52cd8f19f3e6db8890 (patch) | |
tree | 7e27311b189a8a84b2f02cb1d10e03f772200599 /engines | |
parent | 0a9febc3007a8b56ee006dad12bf389ba8541c92 (diff) | |
download | scummvm-rg350-b6f6fdced4a2d9541b887d52cd8f19f3e6db8890.tar.gz scummvm-rg350-b6f6fdced4a2d9541b887d52cd8f19f3e6db8890.tar.bz2 scummvm-rg350-b6f6fdced4a2d9541b887d52cd8f19f3e6db8890.zip |
Add default constructor for Cine::Palette (Creates an invalid, empty palette).
svn-id: r39793
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/pal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cine/pal.h b/engines/cine/pal.h index 03c146a69d..47d45f7e76 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -93,8 +93,9 @@ public: /*! \brief Create an initially black palette with the given color format and number of colors. * \param format Color format * \param numColors Number of colors + * \note For the default constructed object (i.e. no parameters given) this will hold: empty() && !isValid() */ - Palette(const Graphics::PixelFormat format, const uint numColors); + Palette(const Graphics::PixelFormat format = Graphics::PixelFormat(), const uint numColors = 0); /*! \brief Clear the palette (Set color count to zero, release memory, overwrite color format with default value). * \note This is very different from using fillWithBlack-function which fills the palette with black. |