don't assign NULLs to bools and floats, this is confusing (and also the usual: deTABified; corrected double to int cast)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -433,7 +433,7 @@ void wxMacCoreGraphicsPenData::Init()
|
|||||||
{
|
{
|
||||||
m_lengths = NULL;
|
m_lengths = NULL;
|
||||||
m_userLengths = NULL;
|
m_userLengths = NULL;
|
||||||
m_width = NULL;
|
m_width = 0;
|
||||||
m_count = 0;
|
m_count = 0;
|
||||||
m_patternColorComponents = NULL;
|
m_patternColorComponents = NULL;
|
||||||
m_isPattern = false;
|
m_isPattern = false;
|
||||||
@@ -1126,7 +1126,7 @@ public:
|
|||||||
int penwidth = 0 ;
|
int penwidth = 0 ;
|
||||||
if ( !m_pen.IsNull() )
|
if ( !m_pen.IsNull() )
|
||||||
{
|
{
|
||||||
penwidth = ((wxMacCoreGraphicsPenData*)m_pen.GetRefData())->GetWidth();
|
penwidth = (int)((wxMacCoreGraphicsPenData*)m_pen.GetRefData())->GetWidth();
|
||||||
if ( penwidth == 0 )
|
if ( penwidth == 0 )
|
||||||
penwidth = 1;
|
penwidth = 1;
|
||||||
}
|
}
|
||||||
@@ -1434,7 +1434,7 @@ void wxMacCoreGraphicsContext::SetNativeContext( CGContextRef cg )
|
|||||||
CGContextRetain(m_cgContext);
|
CGContextRetain(m_cgContext);
|
||||||
CGContextSaveGState( m_cgContext );
|
CGContextSaveGState( m_cgContext );
|
||||||
CGContextSaveGState( m_cgContext );
|
CGContextSaveGState( m_cgContext );
|
||||||
m_releaseContext = NULL;
|
m_releaseContext = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user