diff options
author | Paul Gilbert | 2017-11-29 21:34:28 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-29 21:34:28 -0500 |
commit | 2ca0235f44a1144aa248a497428fd59fd11840d7 (patch) | |
tree | fbf327976a40a5b3b5aab2802a9369c67211e2ca /engines/xeen/sprites.cpp | |
parent | 7c74f4f82697570f9627ce1c87eacf7cf7361d31 (diff) | |
download | scummvm-rg350-2ca0235f44a1144aa248a497428fd59fd11840d7.tar.gz scummvm-rg350-2ca0235f44a1144aa248a497428fd59fd11840d7.tar.bz2 scummvm-rg350-2ca0235f44a1144aa248a497428fd59fd11840d7.zip |
XEEN: Refactor FontSurface as ancestors of Window, not Screen
This refactoring allowed Screen to now simply derive from
Graphics::Screen, and several duplicated methods could be removed.
Diffstat (limited to 'engines/xeen/sprites.cpp')
-rw-r--r-- | engines/xeen/sprites.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index 8070368a30..430505e7d2 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -308,6 +308,12 @@ void SpriteResource::draw(Window &dest, int frame, const Common::Point &destPos, draw(dest, frame, destPos, dest.getBounds(), flags, scale); } +void SpriteResource::draw(int windowIndex, int frame, const Common::Point &destPos, + int flags, int scale) { + Window &win = (*g_vm->_windows)[windowIndex]; + draw(win, frame, destPos, flags, scale); +} + void SpriteResource::draw(XSurface &dest, int frame, const Common::Point &destPos, const Common::Rect &bounds, int flags, int scale) { @@ -320,6 +326,10 @@ void SpriteResource::draw(XSurface &dest, int frame) { draw(dest, frame, Common::Point()); } +void SpriteResource::draw(int windowIndex, int frame) { + draw((*g_vm->_windows)[windowIndex], frame, Common::Point()); +} + uint SpriteResource::getScaledVal(int xy, uint16 &scaleMask) { if (!xy) return 0; |