From 715c931f75bbc24279551f33b99c01a6baa8303d Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 19 Aug 2009 21:23:36 +0200 Subject: merge methods SetHorizontalSize and SetVerticalSize to method setDimension --- dxr3interface.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'dxr3interface.h') diff --git a/dxr3interface.h b/dxr3interface.h index fe6a705..ba5e3f1 100644 --- a/dxr3interface.h +++ b/dxr3interface.h @@ -52,8 +52,7 @@ private: driver and so to the card, so this is the layer between plugin and driver. */ -class cDxr3Interface : public Singleton -{ +class cDxr3Interface : public Singleton { public: cDxr3Interface(); ~cDxr3Interface(); @@ -104,17 +103,7 @@ public: uint32_t GetHorizontalSize() const { return m_horizontal; } uint32_t GetVerticalSize() const { return m_vertical; } - void SetHorizontalSize(uint32_t value) - { - if (value > 0) - m_horizontal = value; - } - - void SetVerticalSize(uint32_t value) - { - if (value > 0) - m_vertical = value; - }; + void setDimension(uint32_t horizontal, uint32_t vertical); // play functions void SetPlayMode(); -- cgit v1.2.3