From f1872c18e613bb244c465f983ddb41563b15a297 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 5 Jan 2003 18:25:27 +0000 Subject: [PATCH] region calculation for windows with borders too small git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dc.cpp | 4 ++-- src/mac/carbon/window.cpp | 4 ++-- src/mac/dc.cpp | 4 ++-- src/mac/window.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 65f74ce58a..638a4f0d58 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -70,8 +70,8 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win ) parent->MacWindowToRootWindow( &x,&y ) ; wxSize size = parent->GetSize() ; SetRectRgn( insidergn , parent->MacGetLeftBorderSize() , parent->MacGetTopBorderSize() , - size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(), - size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ; + size.x - parent->MacGetRightBorderSize(), + size.y - parent->MacGetBottomBorderSize()) ; CopyRgn( (RgnHandle) parent->MacGetVisibleRegion(false).GetWXHRGN() , m_newClip ) ; SectRgn( m_newClip , insidergn , m_newClip ) ; OffsetRgn( m_newClip , x , y ) ; diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 70ffe076e7..0528ad58db 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1666,8 +1666,8 @@ const wxRegion& wxWindowMac::MacGetVisibleRegion( bool respectChildrenAndSibling SetRectRgn( tempRgn , x + parent->MacGetLeftBorderSize() , y + parent->MacGetTopBorderSize() , - x + size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(), - y + size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ; + x + size.x - parent->MacGetRightBorderSize(), + y + size.y - parent->MacGetBottomBorderSize()) ; SectRgn( visRgn , tempRgn , visRgn ) ; if ( parent->IsTopLevel() ) diff --git a/src/mac/dc.cpp b/src/mac/dc.cpp index 65f74ce58a..638a4f0d58 100644 --- a/src/mac/dc.cpp +++ b/src/mac/dc.cpp @@ -70,8 +70,8 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win ) parent->MacWindowToRootWindow( &x,&y ) ; wxSize size = parent->GetSize() ; SetRectRgn( insidergn , parent->MacGetLeftBorderSize() , parent->MacGetTopBorderSize() , - size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(), - size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ; + size.x - parent->MacGetRightBorderSize(), + size.y - parent->MacGetBottomBorderSize()) ; CopyRgn( (RgnHandle) parent->MacGetVisibleRegion(false).GetWXHRGN() , m_newClip ) ; SectRgn( m_newClip , insidergn , m_newClip ) ; OffsetRgn( m_newClip , x , y ) ; diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 70ffe076e7..0528ad58db 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -1666,8 +1666,8 @@ const wxRegion& wxWindowMac::MacGetVisibleRegion( bool respectChildrenAndSibling SetRectRgn( tempRgn , x + parent->MacGetLeftBorderSize() , y + parent->MacGetTopBorderSize() , - x + size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(), - y + size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ; + x + size.x - parent->MacGetRightBorderSize(), + y + size.y - parent->MacGetBottomBorderSize()) ; SectRgn( visRgn , tempRgn , visRgn ) ; if ( parent->IsTopLevel() ) -- 2.45.2