From fa17f684da1da7fded805746b75c454502ffe683 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Tue, 24 Nov 2015 00:10:10 +0100 Subject: 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. --- engines/illusions/actor.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engines/illusions/actor.cpp') 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(); -- cgit v1.2.3