Corrected accidental pointer arithmetic in DoClientToScreen and vice versa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-30 20:08:40 +00:00
parent a6ba320faf
commit 7e2955b75c
2 changed files with 8 additions and 8 deletions

View File

@@ -391,9 +391,9 @@ void wxWindowMac::DoScreenToClient(int *x, int *y) const
MacRootWindowToWindow( x , y ) ;
if ( x )
x -= MacGetLeftBorderSize() ;
(*x) -= MacGetLeftBorderSize() ;
if ( y )
y -= MacGetTopBorderSize() ;
(*y) -= MacGetTopBorderSize() ;
}
void wxWindowMac::DoClientToScreen(int *x, int *y) const
@@ -401,9 +401,9 @@ void wxWindowMac::DoClientToScreen(int *x, int *y) const
WindowRef window = (WindowRef) MacGetRootWindow() ;
if ( x )
x += MacGetLeftBorderSize() ;
(*x) += MacGetLeftBorderSize() ;
if ( y )
y += MacGetTopBorderSize() ;
(*y) += MacGetTopBorderSize() ;
MacWindowToRootWindow( x , y ) ;

View File

@@ -391,9 +391,9 @@ void wxWindowMac::DoScreenToClient(int *x, int *y) const
MacRootWindowToWindow( x , y ) ;
if ( x )
x -= MacGetLeftBorderSize() ;
(*x) -= MacGetLeftBorderSize() ;
if ( y )
y -= MacGetTopBorderSize() ;
(*y) -= MacGetTopBorderSize() ;
}
void wxWindowMac::DoClientToScreen(int *x, int *y) const
@@ -401,9 +401,9 @@ void wxWindowMac::DoClientToScreen(int *x, int *y) const
WindowRef window = (WindowRef) MacGetRootWindow() ;
if ( x )
x += MacGetLeftBorderSize() ;
(*x) += MacGetLeftBorderSize() ;
if ( y )
y += MacGetTopBorderSize() ;
(*y) += MacGetTopBorderSize() ;
MacWindowToRootWindow( x , y ) ;