remove unneeded code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,9 +121,6 @@ wxWindowDC::wxWindowDC(wxWindow *window)
|
|||||||
if (!rootwindow)
|
if (!rootwindow)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int x , y ;
|
|
||||||
x = y = 0 ;
|
|
||||||
window->MacWindowToRootWindow( &x , &y ) ;
|
|
||||||
m_ok = true ;
|
m_ok = true ;
|
||||||
|
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
@@ -149,6 +146,9 @@ wxWindowDC::wxWindowDC(wxWindow *window)
|
|||||||
m_graphicContext->SetBrush( m_brush ) ;
|
m_graphicContext->SetBrush( m_brush ) ;
|
||||||
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
||||||
#else
|
#else
|
||||||
|
int x , y ;
|
||||||
|
x = y = 0 ;
|
||||||
|
window->MacWindowToRootWindow( &x , &y ) ;
|
||||||
m_macLocalOrigin.x = x ;
|
m_macLocalOrigin.x = x ;
|
||||||
m_macLocalOrigin.y = y ;
|
m_macLocalOrigin.y = y ;
|
||||||
m_macPort = UMAGetWindowPort( (WindowRef) rootwindow->MacGetWindowRef() ) ;
|
m_macPort = UMAGetWindowPort( (WindowRef) rootwindow->MacGetWindowRef() ) ;
|
||||||
@@ -252,11 +252,6 @@ wxClientDC::wxClientDC(wxWindow *window) :
|
|||||||
wxWindowDC( window )
|
wxWindowDC( window )
|
||||||
{
|
{
|
||||||
wxPoint origin = window->GetClientAreaOrigin() ;
|
wxPoint origin = window->GetClientAreaOrigin() ;
|
||||||
wxSize size = window->GetClientSize() ;
|
|
||||||
int x , y ;
|
|
||||||
x = origin.x ;
|
|
||||||
y = origin.y ;
|
|
||||||
window->MacWindowToRootWindow( &x , &y ) ;
|
|
||||||
m_window->GetClientSize( &m_width , &m_height);
|
m_window->GetClientSize( &m_width , &m_height);
|
||||||
SetDeviceOrigin( origin.x, origin.y );
|
SetDeviceOrigin( origin.x, origin.y );
|
||||||
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
||||||
@@ -319,11 +314,6 @@ wxPaintDC::wxPaintDC(wxWindow *window) :
|
|||||||
wxWindowDC( window )
|
wxWindowDC( window )
|
||||||
{
|
{
|
||||||
wxPoint origin = window->GetClientAreaOrigin() ;
|
wxPoint origin = window->GetClientAreaOrigin() ;
|
||||||
wxSize size = window->GetClientSize() ;
|
|
||||||
int x , y ;
|
|
||||||
x = origin.x ;
|
|
||||||
y = origin.y ;
|
|
||||||
window->MacWindowToRootWindow( &x , &y ) ;
|
|
||||||
m_window->GetClientSize( &m_width , &m_height);
|
m_window->GetClientSize( &m_width , &m_height);
|
||||||
SetDeviceOrigin( origin.x, origin.y );
|
SetDeviceOrigin( origin.x, origin.y );
|
||||||
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
SetClippingRegion( 0 , 0 , m_width , m_height ) ;
|
||||||
|
Reference in New Issue
Block a user