diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-08-19 21:23:36 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-08-19 21:23:36 +0200 |
commit | 715c931f75bbc24279551f33b99c01a6baa8303d (patch) | |
tree | 5b0c3893ccb089e777398c9a3034d457f86ae77e /dxr3interface.h | |
parent | 8b908afb77842c60ca02c3fe3dfda3c3845fb4a9 (diff) | |
download | vdr-plugin-dxr3-715c931f75bbc24279551f33b99c01a6baa8303d.tar.gz vdr-plugin-dxr3-715c931f75bbc24279551f33b99c01a6baa8303d.tar.bz2 |
merge methods SetHorizontalSize and SetVerticalSize to method setDimension
Diffstat (limited to 'dxr3interface.h')
-rw-r--r-- | dxr3interface.h | 15 |
1 files changed, 2 insertions, 13 deletions
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<cDxr3Interface> -{ +class cDxr3Interface : public Singleton<cDxr3Interface> { 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(); |