diff options
author | Eugene Sandulenko | 2013-06-26 19:46:47 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:16 +0300 |
commit | ee5dc16eaa138bfeca7f914b4314ef03bcfd7352 (patch) | |
tree | 974d99d01fd85db6602d7bbbe13c901254cb8e6f /engines/fullpipe/gfx.cpp | |
parent | 305692fefe567228441e6edea5225d0b4853a9f8 (diff) | |
download | scummvm-rg350-ee5dc16eaa138bfeca7f914b4314ef03bcfd7352.tar.gz scummvm-rg350-ee5dc16eaa138bfeca7f914b4314ef03bcfd7352.tar.bz2 scummvm-rg350-ee5dc16eaa138bfeca7f914b4314ef03bcfd7352.zip |
FULLPIPE: Implement Background::addPictureObject
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 79a1e1da70..531bfd92bf 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -74,7 +74,25 @@ bool Background::load(MfcArchive &file) { } void Background::addPictureObject(PictureObject *pct) { - warning("STUB: Background::addPictureObject"); + if (pct->_field_4) + renumPictures(pct); + + bool inserted = false; + for (uint i = 0; i < _picObjList.size(); i++) { + if (((PictureObject *)_picObjList[i])->_priority == pct->_priority) { + _picObjList.insert_at(i, pct); + inserted = true; + break; + } + } + + if (!inserted) { + _picObjList.push_back(pct); + } +} + +void Background::renumPictures(PictureObject *pct) { + warning("STUB: Background::renumPictures"); } PictureObject::PictureObject() { |