diff options
Diffstat (limited to 'engines/wintermute/BViewport.cpp')
-rw-r--r-- | engines/wintermute/BViewport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/BViewport.cpp b/engines/wintermute/BViewport.cpp index bb2f5b6b29..57cb1bc02f 100644 --- a/engines/wintermute/BViewport.cpp +++ b/engines/wintermute/BViewport.cpp @@ -65,10 +65,10 @@ HRESULT CBViewport::Persist(CBPersistMgr *PersistMgr) { //////////////////////////////////////////////////////////////////////////
HRESULT CBViewport::SetRect(int left, int top, int right, int bottom, bool NoCheck) {
if (!NoCheck) {
- left = std::max(left, 0);
- top = std::max(top, 0);
- right = std::min(right, Game->m_Renderer->m_Width);
- bottom = std::min(bottom, Game->m_Renderer->m_Height);
+ left = MAX(left, 0);
+ top = MAX(top, 0);
+ right = MIN(right, Game->m_Renderer->m_Width);
+ bottom = MIN(bottom, Game->m_Renderer->m_Height);
}
CBPlatform::SetRect(&m_Rect, left, top, right, bottom);
|