diff options
author | Max Horn | 2011-03-25 14:56:31 +0100 |
---|---|---|
committer | Max Horn | 2011-03-25 15:00:41 +0100 |
commit | bb6a5c3685ef555ab63ee1fd39173dbdad9a2a13 (patch) | |
tree | 52615764f0ed1eb97d1a3f9da1bbac6d5ccc3092 /engines/sword25/gfx/image/swimage.cpp | |
parent | 0e6cdfd67580f75e912c5e92abb26821d032f74b (diff) | |
download | scummvm-rg350-bb6a5c3685ef555ab63ee1fd39173dbdad9a2a13.tar.gz scummvm-rg350-bb6a5c3685ef555ab63ee1fd39173dbdad9a2a13.tar.bz2 scummvm-rg350-bb6a5c3685ef555ab63ee1fd39173dbdad9a2a13.zip |
SWORD25: more translated comments from gfx/image (patch #3238507)
Plus some extra white space changes by myself.
Diffstat (limited to 'engines/sword25/gfx/image/swimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/swimage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/gfx/image/swimage.cpp b/engines/sword25/gfx/image/swimage.cpp index ff06491b36..3b9b939eb3 100644 --- a/engines/sword25/gfx/image/swimage.cpp +++ b/engines/sword25/gfx/image/swimage.cpp @@ -47,7 +47,7 @@ SWImage::SWImage(const Common::String &filename, bool &result) : PackageManager *pPackage = Kernel::getInstance()->getPackage(); assert(pPackage); - // Datei laden + // Load file byte *pFileData; uint fileSize; pFileData = pPackage->getFile(filename, &fileSize); @@ -56,21 +56,21 @@ SWImage::SWImage(const Common::String &filename, bool &result) : return; } - // Bildeigenschaften bestimmen + // Determine image properties int pitch; if (!PNGLoader::imageProperties(pFileData, fileSize, _width, _height)) { error("Could not read image properties."); return; } - // Das Bild dekomprimieren + // Uncompress the image byte *pUncompressedData; if (!PNGLoader::decodeImage(pFileData, fileSize, pUncompressedData, _width, _height, pitch)) { error("Could not decode image."); return; } - // Dateidaten freigeben + // Cleanup FileData delete[] pFileData; _imageDataPtr = (uint *)pUncompressedData; |