wxX11:
Updated wxColour for handling Colormaps and ref couting. Updated wxClientDC et al. for conforming to wxGTK. Many tricky parts, particularly the bitmap drawing and blitting is still missing. Any sample crashes now for some reason with an X error. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -246,6 +246,8 @@ wxWindowDC::wxWindowDC()
|
||||
|
||||
wxWindowDC::wxWindowDC( wxWindow *window )
|
||||
{
|
||||
wxASSERT_MSG( window, wxT("DC needs a window") );
|
||||
|
||||
m_penGC = (GdkGC *) NULL;
|
||||
m_brushGC = (GdkGC *) NULL;
|
||||
m_textGC = (GdkGC *) NULL;
|
||||
@@ -256,8 +258,6 @@ wxWindowDC::wxWindowDC( wxWindow *window )
|
||||
m_isScreenDC = FALSE;
|
||||
m_font = window->GetFont();
|
||||
|
||||
wxASSERT_MSG( window, wxT("DC needs a window") );
|
||||
|
||||
GtkWidget *widget = window->m_wxwindow;
|
||||
|
||||
// some controls don't have m_wxwindow - like wxStaticBox, but the user
|
||||
|
Reference in New Issue
Block a user