MxVideoPresenter functions (#187)

* mxvideopresenter

* Update mxvideopresenter.cpp

* use inline getter for rectange width/height

* Update mxvideopresenter.cpp

* Match MxVideoPresenter::Destroy to ~88%

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2023-10-16 16:09:08 -04:00
committed by GitHub
parent b95656a735
commit 3dee6eae7a
5 changed files with 94 additions and 30 deletions

View File

@@ -17,6 +17,16 @@ public:
MxS32 m_top;
MxS32 m_right;
MxS32 m_bottom;
inline MxS32 GetWidth()
{
return (m_right - m_left) + 1;
}
inline MxS32 GetHeight()
{
return (m_bottom - m_top) + 1;
}
};
#endif // MXRECT32_H