diff options
author | Eugene Sandulenko | 2013-07-12 09:03:02 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:17 +0300 |
commit | 56cb726ebc4446dfab6e625502a1589253deae4f (patch) | |
tree | 6dee12b157920237bf19c5ba08e4e734bc73f55a /engines/fullpipe/gfx.cpp | |
parent | f18e318f788d126b6c39232afaf0012ef401d55d (diff) | |
download | scummvm-rg350-56cb726ebc4446dfab6e625502a1589253deae4f.tar.gz scummvm-rg350-56cb726ebc4446dfab6e625502a1589253deae4f.tar.bz2 scummvm-rg350-56cb726ebc4446dfab6e625502a1589253deae4f.zip |
FULLPIPE: Added lots of debug output, Picture::setAOIDs() implementation
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index b06968e77f..460452d630 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -29,6 +29,8 @@ namespace Fullpipe { void Bitmap::load(Common::ReadStream *s) { + debug(5, "Bitmap::load()"); + x = s->readUint32LE(); y = s->readUint32LE(); width = s->readUint32LE(); @@ -54,6 +56,7 @@ Background::Background() { } bool Background::load(MfcArchive &file) { + debug(5, "Background::load()"); _stringObj = file.readPascalString(); int count = file.readUint16LE(); @@ -132,6 +135,7 @@ PictureObject::PictureObject() { } bool PictureObject::load(MfcArchive &file, bool bigPicture) { + debug(5, "PictureObject::load()"); GameObject::load(file); if (bigPicture) @@ -170,6 +174,7 @@ GameObject::GameObject() { } bool GameObject::load(MfcArchive &file) { + debug(5, "GameObject::load()"); _field_4 = 0; _flags = 0; _field_20 = 0; @@ -205,6 +210,7 @@ Picture::Picture() { } bool Picture::load(MfcArchive &file) { + debug(5, "Picture::load()"); MemoryObject::load(file); _x = file.readUint32LE(); @@ -240,6 +246,17 @@ bool Picture::load(MfcArchive &file) { } void Picture::setAOIDs() { + int w = (g_fullpipe->_pictureScale + _width - 1) / g_fullpipe->_pictureScale; + int h = (g_fullpipe->_pictureScale + _height - 1) / g_fullpipe->_pictureScale; + + _memoryObject2->_rows = (byte **)malloc(w * sizeof(int *)); + + int pitch = 2 * h; + byte *ptr = _memoryObject2->getData(); + for (int i = 0; i < w; i++) { + _memoryObject2->_rows[i] = ptr; + ptr += pitch; + } warning("STUB: Picture::setAOIDs()"); } @@ -268,6 +285,7 @@ BigPicture::BigPicture() { } bool BigPicture::load(MfcArchive &file) { + debug(5, "BigPicture::load()"); Picture::load(file); return true; @@ -280,6 +298,7 @@ Shadows::Shadows() { } bool Shadows::load(MfcArchive &file) { + debug(5, "Shadows::load()"); _sceneId = file.readUint32LE(); _staticAniObjectId = file.readUint32LE(); _movementId = file.readUint32LE(); |