aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-25 00:08:39 +0200
committerEinar Johan Trøan Sømåen2012-07-25 00:08:39 +0200
commit8be1e095fd6ab78f8f90633d254643f5bb45ffd4 (patch)
tree9e70770f66f4dd57e5804fe2fa746ce33ced18aa /engines/wintermute/base/gfx
parentc59965ad4faca67be0dad554bc291a97f2691dff (diff)
downloadscummvm-rg350-8be1e095fd6ab78f8f90633d254643f5bb45ffd4.tar.gz
scummvm-rg350-8be1e095fd6ab78f8f90633d254643f5bb45ffd4.tar.bz2
scummvm-rg350-8be1e095fd6ab78f8f90633d254643f5bb45ffd4.zip
WINTERMUTE: Avoid starting up the engine to perform detection.
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r--engines/wintermute/base/gfx/base_image.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wintermute/base/gfx/base_image.cpp b/engines/wintermute/base/gfx/base_image.cpp
index bdc7cb76e2..2c18b64110 100644
--- a/engines/wintermute/base/gfx/base_image.cpp
+++ b/engines/wintermute/base/gfx/base_image.cpp
@@ -82,14 +82,14 @@ bool BaseImage::loadFile(const Common::String &filename) {
}
_filename = filename;
Common::SeekableReadStream *file = _fileManager->openFile(filename.c_str());
- if (!file) return STATUS_FAILED;
+ if (!file) return false;
_decoder->loadStream(*file);
_surface = _decoder->getSurface();
_palette = _decoder->getPalette();
_fileManager->closeFile(file);
- return STATUS_OK;
+ return true;
}
byte BaseImage::getAlphaAt(int x, int y) {
@@ -113,7 +113,7 @@ bool BaseImage::saveBMPFile(const char *filename) {
if (FreeImage_Save(FIF_BMP, _bitmap, filename)) return STATUS_OK;
else return STATUS_FAILED;
#endif
- return STATUS_FAILED;
+ return false;
}
@@ -133,7 +133,7 @@ bool BaseImage::resize(int newWidth, int newHeight) {
return STATUS_OK;
} else return STATUS_FAILED;
#endif
- return STATUS_FAILED;
+ return false;
}
@@ -258,7 +258,7 @@ bool BaseImage::copyFrom(BaseImage *origImage, int newWidth, int newHeight) {
_deletableSurface = NULL;
}
_surface = _deletableSurface = temp.scale(newWidth, newHeight);
- return STATUS_OK;
+ return true;
}
} // end of namespace WinterMute