warning msgs
toolbar updates mdi fixes dnd works now Forty Thieves drawing optimization wxDF_Text constants ListCtrl bugs fixed memory leak work imrc now refers to home dir dcclient/memory leak fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,10 +87,21 @@ IMPLEMENT_DYNAMIC_CLASS(wxPaintDC,wxDC)
|
||||
|
||||
wxPaintDC::wxPaintDC(void)
|
||||
{
|
||||
m_penGC = NULL;
|
||||
m_brushGC = NULL;
|
||||
m_textGC = NULL;
|
||||
m_bgGC = NULL;
|
||||
m_cmap = NULL;
|
||||
};
|
||||
|
||||
wxPaintDC::wxPaintDC( wxWindow *window )
|
||||
{
|
||||
m_penGC = NULL;
|
||||
m_brushGC = NULL;
|
||||
m_textGC = NULL;
|
||||
m_bgGC = NULL;
|
||||
m_cmap = NULL;
|
||||
|
||||
if (!window) return;
|
||||
GtkWidget *widget = window->m_wxwindow;
|
||||
if (!widget) return;
|
||||
@@ -777,9 +788,13 @@ void wxPaintDC::SetUpDC(void)
|
||||
{
|
||||
m_ok = TRUE;
|
||||
m_logicalFunction = wxCOPY;
|
||||
if (m_penGC) gdk_gc_unref( m_penGC );
|
||||
m_penGC = gdk_gc_new( m_window );
|
||||
if (m_brushGC) gdk_gc_unref( m_brushGC );
|
||||
m_brushGC = gdk_gc_new( m_window );
|
||||
if (m_textGC) gdk_gc_unref( m_textGC );
|
||||
m_textGC = gdk_gc_new( m_window );
|
||||
if (m_bgGC) gdk_gc_unref( m_bgGC );
|
||||
m_bgGC = gdk_gc_new( m_window );
|
||||
SetTextForeground( m_textForegroundColour );
|
||||
SetTextBackground( m_textBackgroundColour );
|
||||
|
Reference in New Issue
Block a user