From 3edc151c5bde78eaa810a7ddc6092e9c920fb9c6 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 21 Apr 2010 10:42:01 +0000 Subject: Changed MadsView into a separate class, since it's functionality is needed by two different class hierarchies that can't share a common ancestor class svn-id: r48763 --- engines/m4/mads_views.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/m4/mads_views.h') diff --git a/engines/m4/mads_views.h b/engines/m4/mads_views.h index bb151d7078..f1c23dc27b 100644 --- a/engines/m4/mads_views.h +++ b/engines/m4/mads_views.h @@ -154,16 +154,17 @@ public: -class MadsView: public View { +class MadsView { +private: + View *_view; public: MadsSpriteSlots _spriteSlots; MadsTextDisplay _textDisplay; ScreenObjects _screenObjects; public: - MadsView(MadsM4Engine *vm, const Common::Rect &viewBounds, bool transparent = false); - MadsView(MadsM4Engine *vm, int x = 0, int y = 0, bool transparent = false); + MadsView(View *view): _view(view) {} - void onRefresh(RectList *rects, M4Surface *destSurface); + void refresh(RectList *rects); }; #define CHEAT_SEQUENCE_MAX 8 -- cgit v1.2.3