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.right = 32000 ;
|
||||||
m_macClipRect.bottom = 32000 ;
|
m_macClipRect.bottom = 32000 ;
|
||||||
::GetPort( &m_macOrigPort ) ;
|
::GetPort( &m_macOrigPort ) ;
|
||||||
|
|
||||||
|
m_pen = *wxBLACK_PEN;
|
||||||
|
m_font = *wxNORMAL_FONT;
|
||||||
|
m_brush = *wxWHITE_BRUSH;
|
||||||
};
|
};
|
||||||
|
|
||||||
wxDC::~wxDC(void)
|
wxDC::~wxDC(void)
|
||||||
|
@@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
PrepareDC(dc);
|
PrepareDC(dc);
|
||||||
dc.Clear() ;
|
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||||
|
|
||||||
int x = 0 ;
|
int x = 0 ;
|
||||||
int y = 0 ;
|
int y = 0 ;
|
||||||
@@ -260,6 +260,8 @@ void wxStaticText::SetLabel(const wxString& st )
|
|||||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||||
SetSizeOrDefault() ;
|
SetSizeOrDefault() ;
|
||||||
|
|
||||||
wxClientDC dc(this);
|
Refresh() ;
|
||||||
OnDraw( dc ) ;
|
MacUpdateImmediately() ;
|
||||||
|
// wxClientDC dc(this);
|
||||||
|
// OnDraw( dc ) ;
|
||||||
}
|
}
|
||||||
|
@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
|
|||||||
|
|
||||||
vsprintf(buffer,fmt,ap) ;
|
vsprintf(buffer,fmt,ap) ;
|
||||||
strcat(buffer,";g") ;
|
strcat(buffer,";g") ;
|
||||||
debugstr(buffer) ;
|
c2pstr(buffer) ;
|
||||||
|
DebugStr((unsigned char*) buffer) ;
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
@@ -83,6 +83,10 @@ wxDC::wxDC()
|
|||||||
m_macClipRect.right = 32000 ;
|
m_macClipRect.right = 32000 ;
|
||||||
m_macClipRect.bottom = 32000 ;
|
m_macClipRect.bottom = 32000 ;
|
||||||
::GetPort( &m_macOrigPort ) ;
|
::GetPort( &m_macOrigPort ) ;
|
||||||
|
|
||||||
|
m_pen = *wxBLACK_PEN;
|
||||||
|
m_font = *wxNORMAL_FONT;
|
||||||
|
m_brush = *wxWHITE_BRUSH;
|
||||||
};
|
};
|
||||||
|
|
||||||
wxDC::~wxDC(void)
|
wxDC::~wxDC(void)
|
||||||
|
@@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
PrepareDC(dc);
|
PrepareDC(dc);
|
||||||
dc.Clear() ;
|
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||||
|
|
||||||
int x = 0 ;
|
int x = 0 ;
|
||||||
int y = 0 ;
|
int y = 0 ;
|
||||||
@@ -260,6 +260,8 @@ void wxStaticText::SetLabel(const wxString& st )
|
|||||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||||
SetSizeOrDefault() ;
|
SetSizeOrDefault() ;
|
||||||
|
|
||||||
wxClientDC dc(this);
|
Refresh() ;
|
||||||
OnDraw( dc ) ;
|
MacUpdateImmediately() ;
|
||||||
|
// wxClientDC dc(this);
|
||||||
|
// OnDraw( dc ) ;
|
||||||
}
|
}
|
||||||
|
@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
|
|||||||
|
|
||||||
vsprintf(buffer,fmt,ap) ;
|
vsprintf(buffer,fmt,ap) ;
|
||||||
strcat(buffer,";g") ;
|
strcat(buffer,";g") ;
|
||||||
debugstr(buffer) ;
|
c2pstr(buffer) ;
|
||||||
|
DebugStr((unsigned char*) buffer) ;
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user