diff options
Diffstat (limited to 'dxr3interface.h')
-rw-r--r-- | dxr3interface.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/dxr3interface.h b/dxr3interface.h index a147a6c..fc5560a 100644 --- a/dxr3interface.h +++ b/dxr3interface.h @@ -104,21 +104,19 @@ public: // set/get functions uint32_t GetAspectRatio() const; void SetAspectRatio(uint32_t ratio); - uint32_t GetHorizontalSize() const - { - return m_horizontal; - } - void SetHorizontalSize(uint32_t horizontal) - { - m_horizontal = horizontal; - }; - uint32_t GetVerticalSize() const + uint32_t GetHorizontalSize() const { return m_horizontal; } + uint32_t GetVerticalSize() const { return m_vertical; } + + void SetHorizontalSize(uint32_t value) { - return m_vertical; + if (value > 0) + m_horizontal = value; } - void SetVerticalSize(uint32_t vertical) + + void SetVerticalSize(uint32_t value) { - m_vertical = vertical; + if (value > 0) + m_vertical = value; }; // play functions |