mac fixes part II
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,6 +83,10 @@ wxDC::wxDC()
|
||||
m_macClipRect.right = 32000 ;
|
||||
m_macClipRect.bottom = 32000 ;
|
||||
::GetPort( &m_macOrigPort ) ;
|
||||
|
||||
m_pen = *wxBLACK_PEN;
|
||||
m_font = *wxNORMAL_FONT;
|
||||
m_brush = *wxWHITE_BRUSH;
|
||||
};
|
||||
|
||||
wxDC::~wxDC(void)
|
||||
|
@@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
||||
return;
|
||||
|
||||
PrepareDC(dc);
|
||||
dc.Clear() ;
|
||||
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||
|
||||
int x = 0 ;
|
||||
int y = 0 ;
|
||||
@@ -259,7 +259,9 @@ void wxStaticText::SetLabel(const wxString& st )
|
||||
m_label = st ;
|
||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||
SetSizeOrDefault() ;
|
||||
|
||||
wxClientDC dc(this);
|
||||
OnDraw( dc ) ;
|
||||
|
||||
Refresh() ;
|
||||
MacUpdateImmediately() ;
|
||||
// wxClientDC dc(this);
|
||||
// OnDraw( dc ) ;
|
||||
}
|
||||
|
@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
|
||||
|
||||
vsprintf(buffer,fmt,ap) ;
|
||||
strcat(buffer,";g") ;
|
||||
debugstr(buffer) ;
|
||||
c2pstr(buffer) ;
|
||||
DebugStr((unsigned char*) buffer) ;
|
||||
|
||||
va_end(ap);
|
||||
}
|
||||
|
@@ -83,6 +83,10 @@ wxDC::wxDC()
|
||||
m_macClipRect.right = 32000 ;
|
||||
m_macClipRect.bottom = 32000 ;
|
||||
::GetPort( &m_macOrigPort ) ;
|
||||
|
||||
m_pen = *wxBLACK_PEN;
|
||||
m_font = *wxNORMAL_FONT;
|
||||
m_brush = *wxWHITE_BRUSH;
|
||||
};
|
||||
|
||||
wxDC::~wxDC(void)
|
||||
|
@@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
||||
return;
|
||||
|
||||
PrepareDC(dc);
|
||||
dc.Clear() ;
|
||||
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||
|
||||
int x = 0 ;
|
||||
int y = 0 ;
|
||||
@@ -259,7 +259,9 @@ void wxStaticText::SetLabel(const wxString& st )
|
||||
m_label = st ;
|
||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||
SetSizeOrDefault() ;
|
||||
|
||||
wxClientDC dc(this);
|
||||
OnDraw( dc ) ;
|
||||
|
||||
Refresh() ;
|
||||
MacUpdateImmediately() ;
|
||||
// wxClientDC dc(this);
|
||||
// OnDraw( dc ) ;
|
||||
}
|
||||
|
@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
|
||||
|
||||
vsprintf(buffer,fmt,ap) ;
|
||||
strcat(buffer,";g") ;
|
||||
debugstr(buffer) ;
|
||||
c2pstr(buffer) ;
|
||||
DebugStr((unsigned char*) buffer) ;
|
||||
|
||||
va_end(ap);
|
||||
}
|
||||
|
Reference in New Issue
Block a user