From ad0be89459f318147f47e9c2bda29583a64592aa Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 Aug 2014 20:15:43 -0400 Subject: ACCESS: Simplified surface creation, added drawing for scaled flipped images --- engines/access/asurface.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'engines/access/asurface.h') diff --git a/engines/access/asurface.h b/engines/access/asurface.h index 400dd07b4d..460f73d2c0 100644 --- a/engines/access/asurface.h +++ b/engines/access/asurface.h @@ -39,6 +39,8 @@ class ASurface : public Graphics::Surface { private: Graphics::Surface _savedBlock; Common::Rect _savedBounds; + + void flipHorizontal(ASurface &dest); public: static int _leftSkip, _rightSkip; static int _topSkip, _bottomSkip; @@ -56,6 +58,8 @@ public: public: virtual ~ASurface(); + void create(uint16 width, uint16 height); + void clearBuffer(); void copyBuffer(Graphics::Surface *src) { copyFrom(*src); } @@ -64,10 +68,16 @@ public: void plotImage(SpriteResource *sprite, int frameNum, const Common::Point &pt); - void sPlotB(SpriteFrame *frame, const Common::Point &pt); - + /** + * Scaled draw frame + */ void sPlotF(SpriteFrame *frame, const Common::Rect &bounds); + /** + * Scaled flipped horizontal draw frame + */ + void sPlotB(SpriteFrame *frame, const Common::Rect &bounds); + void plotB(SpriteFrame *frame, const Common::Point &pt); void copyBlock(ASurface *src, const Common::Rect &bounds); -- cgit v1.2.3