diff options
author | johndoe123 | 2015-11-24 00:10:10 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | fa17f684da1da7fded805746b75c454502ffe683 (patch) | |
tree | 1e668515abccf6455299a5b9fbadc2c5b6affd98 /engines/illusions/actor.cpp | |
parent | 09bbb482a8ccdfb8e36128d40364900b99aa2a13 (diff) | |
download | scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.gz scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.bz2 scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.zip |
ILLUSIONS: DUCKMAN: Start implementing the menu system
Still work-in-progress, missing functionality and buggy
Maybe needs some work for BBDOU where this isn't implemented yet.
Diffstat (limited to 'engines/illusions/actor.cpp')
-rw-r--r-- | engines/illusions/actor.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/illusions/actor.cpp b/engines/illusions/actor.cpp index bae77c71fc..91929466be 100644 --- a/engines/illusions/actor.cpp +++ b/engines/illusions/actor.cpp @@ -929,6 +929,23 @@ void Control::refreshSequenceCode() { _actor->_seqCodeIp = sequence->_sequenceCode; } +void Control::getActorFrameDimensions(WidthHeight &dimensions) { + dimensions._width = _actor->_surface->w; + dimensions._height = _actor->_surface->h; +} + +void Control::drawActorRect(const Common::Rect r, byte color) { + _actor->_surface->fillRect(r, color); + _actor->_flags |= 0x4000; +} + +void Control::fillActor(byte color) { + debug("FILL %d, %d", _actor->_surface->w, _actor->_surface->h); + Common::Rect r = Common::Rect(_actor->_surface->w, _actor->_surface->h); + _actor->_surface->fillRect(r, color); + _actor->_flags |= 0x4000; +} + void Control::startSequenceActorIntern(uint32 sequenceId, int value, byte *entryTblPtr, uint32 notifyThreadId) { stopActor(); |