diff options
author | Denis Kasak | 2009-06-17 21:29:05 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-17 21:29:05 +0000 |
commit | 1712db9112dbfb2948a23b2aa2a22023041b52e3 (patch) | |
tree | abd2bb828fed634b0ad2778829e7539b7370c2c3 | |
parent | 491800c19a73dc281823635a5406ecc488ce6408 (diff) | |
download | scummvm-rg350-1712db9112dbfb2948a23b2aa2a22023041b52e3.tar.gz scummvm-rg350-1712db9112dbfb2948a23b2aa2a22023041b52e3.tar.bz2 scummvm-rg350-1712db9112dbfb2948a23b2aa2a22023041b52e3.zip |
Added default parameter to Screen::setPaletteEmpty() so it clears all colours by default.
svn-id: r41614
-rw-r--r-- | engines/draci/screen.cpp | 2 | ||||
-rw-r--r-- | engines/draci/screen.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp index b1c12ccbae..ff6fc5856f 100644 --- a/engines/draci/screen.cpp +++ b/engines/draci/screen.cpp @@ -35,7 +35,7 @@ Screen::Screen(DraciEngine *vm) : _vm(vm) { _surface->create(_vm->_screenWidth, _vm->_screenHeight, 1); this->clearScreen(); _palette = new byte[4 * 256]; - setPaletteEmpty(256); + setPaletteEmpty(); } Screen::~Screen() { diff --git a/engines/draci/screen.h b/engines/draci/screen.h index 5983e73c81..8033fa7f53 100644 --- a/engines/draci/screen.h +++ b/engines/draci/screen.h @@ -35,12 +35,12 @@ namespace Draci { class DraciEngine; class Screen { - + public: Screen(DraciEngine *vm); ~Screen(); - void setPaletteEmpty(unsigned int numEntries); + void setPaletteEmpty(unsigned int numEntries = 256); void setPalette(byte *data, uint16 start, uint16 num); byte *getPalette() const; void copyToScreen() const; |