diff options
| author | Paul Gilbert | 2012-05-04 21:30:45 +1000 | 
|---|---|---|
| committer | Paul Gilbert | 2012-05-04 21:30:45 +1000 | 
| commit | a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c (patch) | |
| tree | 6aec17077c9cfa2e1fdfb7e4ce19f255a7f12da9 /engines/tony/gfxcore.h | |
| parent | 5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6 (diff) | |
| download | scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.tar.gz scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.tar.bz2 scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.zip  | |
TONY: Added virtual destructors to classes using virtual methods
Diffstat (limited to 'engines/tony/gfxcore.h')
| -rw-r--r-- | engines/tony/gfxcore.h | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/tony/gfxcore.h b/engines/tony/gfxcore.h index 708e3adfa8..0f2c2553ec 100644 --- a/engines/tony/gfxcore.h +++ b/engines/tony/gfxcore.h @@ -152,6 +152,8 @@ public:  		m_task = task; m_dst.TopLeft() = dst; m_src.SetEmpty(); m_bFlag = 0;      } +	virtual ~RMGfxPrimitive() { } +      void SetFlag(byte bFlag)		{ m_bFlag=bFlag; }  	void SetTask(RMGfxTask *task)   { m_task = task; }      void SetSrc(const RMRect &src)        { m_src = src; } @@ -185,6 +187,7 @@ protected:  public:  	// Costruttore standard      RMGfxTask(); +	virtual ~RMGfxTask() { }  	virtual int Priority();      virtual void Draw(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim) = 0; @@ -201,6 +204,7 @@ public:   */  class RMGfxTaskSetPrior : public RMGfxTask {  public: +	virtual ~RMGfxTaskSetPrior() { }      void SetPriority(int nPrior);  }; @@ -210,6 +214,8 @@ public:   */  class RMGfxClearTask : public RMGfxTask {  public: +	virtual ~RMGfxClearTask() { } +  	int Priority();      void Draw(RMGfxTargetBuffer& bigBuf, RMGfxPrimitive* prim);  	bool RemoveThis(); @@ -224,6 +230,8 @@ protected:  	uint16 wFillColor;  public: +	virtual ~RMGfxBox() { } +  	void SetColor(byte r, byte g, byte b);  	void Draw(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);  	bool RemoveThis();  | 
