git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71214
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// don't set m_textForegroundColour to an invalid colour as we'd crash
// later then (we use m_textForegroundColour.GetColor() without checking
// in a few places)
// don't set m_textForegroundColour to an invalid colour as we'd crash
// later then (we use m_textForegroundColour.GetColor() without checking
// in a few places)
- if ( col.IsOk() && col != m_textForegroundColour )
{
m_textForegroundColour = col;
m_graphicContext->SetFont( m_font, m_textForegroundColour );
{
m_textForegroundColour = col;
m_graphicContext->SetFont( m_font, m_textForegroundColour );
void wxGCDCImpl::SetPen( const wxPen &pen )
{
void wxGCDCImpl::SetPen( const wxPen &pen )
{
- if ( m_pen == pen )
- return;
-
m_pen = pen;
if ( m_graphicContext )
{
m_pen = pen;
if ( m_graphicContext )
{
void wxGCDCImpl::SetBrush( const wxBrush &brush )
{
void wxGCDCImpl::SetBrush( const wxBrush &brush )
{
- if (m_brush == brush)
- return;
-
m_brush = brush;
if ( m_graphicContext )
{
m_brush = brush;
if ( m_graphicContext )
{
void wxGCDCImpl::SetBackground( const wxBrush &brush )
{
void wxGCDCImpl::SetBackground( const wxBrush &brush )
{
- if (m_backgroundBrush == brush)
- return;
-
m_backgroundBrush = brush;
if (!m_backgroundBrush.IsOk())
return;
m_backgroundBrush = brush;
if (!m_backgroundBrush.IsOk())
return;
void wxGCDCImpl::SetLogicalFunction( wxRasterOperationMode function )
{
void wxGCDCImpl::SetLogicalFunction( wxRasterOperationMode function )
{
- if (m_logicalFunction == function)
- return;
-
m_logicalFunction = function;
wxCompositionMode mode = TranslateRasterOp( function );
m_logicalFunction = function;
wxCompositionMode mode = TranslateRasterOp( function );