diff options
author | Max Horn | 2008-06-18 21:02:52 +0000 |
---|---|---|
committer | Max Horn | 2008-06-18 21:02:52 +0000 |
commit | 07bcb5179ccad90d18a9e5a8f3c86d9d7ee3f910 (patch) | |
tree | 6137fa2fe7257dfd72be645e483c93b7e02fc652 /engines/m4/graphics.cpp | |
parent | 7bceafb3f2cff0f80b5b489d21e8bff90ddb5fbe (diff) | |
download | scummvm-rg350-07bcb5179ccad90d18a9e5a8f3c86d9d7ee3f910.tar.gz scummvm-rg350-07bcb5179ccad90d18a9e5a8f3c86d9d7ee3f910.tar.bz2 scummvm-rg350-07bcb5179ccad90d18a9e5a8f3c86d9d7ee3f910.zip |
Renamed M4Surface::empty() to clear() (two reason: empty is not a verb, and in class String it is used for a bool property)
svn-id: r32733
Diffstat (limited to 'engines/m4/graphics.cpp')
-rw-r--r-- | engines/m4/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp index beda178344..1846f1c1e7 100644 --- a/engines/m4/graphics.cpp +++ b/engines/m4/graphics.cpp @@ -320,7 +320,7 @@ byte *M4Surface::getBasePtr(int x, int y) { void M4Surface::freeData() { } -void M4Surface::empty() { +void M4Surface::clear() { Common::set_to((byte *) pixels, (byte *) pixels + w * h, _vm->_palette->BLACK); } @@ -389,7 +389,7 @@ void M4Surface::loadBackgroundRiddle(const char *sceneName) { } void M4Surface::loadBackground(int sceneNumber, RGBList **palData) { - this->empty(); // clear previous scene + clear(); // clear previous scene if (_vm->isM4() || (_vm->getGameType() == GType_RexNebular)) { char resourceName[20]; @@ -502,7 +502,7 @@ void M4Surface::madsLoadBackground(int roomNumber, RGBList **palData) { //printf("Tile: %i, compressed size: %i\n", i, compressedTileDataSize); - newTile->empty(); + newTile->clear(); byte *compressedTileData = new byte[compressedTileDataSize]; |