m_cmap = gtk_widget_get_colormap( window->m_wxwindow );
else
m_cmap = gtk_widget_get_colormap( window->m_widget );
+
+ m_isDrawable = TRUE;
+
SetUpDC();
long x = 0;
long x2 = XLOG2DEV(points[i+1].x + xoffset);
long y1 = YLOG2DEV(points[i].y + yoffset); // oh, what a waste
long y2 = YLOG2DEV(points[i+1].y + yoffset);
- gdk_draw_line( m_window, m_brushGC, x1, y1, x2, y2 );
+ gdk_draw_line( m_window, m_penGC, x1, y1, x2, y2 );
};
};
long x2 = XLOG2DEV(npoint->x + xoffset);
long y1 = YLOG2DEV(point->y + yoffset); // and again...
long y2 = YLOG2DEV(npoint->y + yoffset);
- gdk_draw_line( m_window, m_brushGC, x1, y1, x2, y2 );
+ gdk_draw_line( m_window, m_penGC, x1, y1, x2, y2 );
node = node->Next();
};
};
if (!Ok()) return;
DestroyClippingRegion();
- gdk_window_clear( m_window );
+
+ if (m_isDrawable)
+ {
+ gdk_window_clear( m_window );
+ }
+ else
+ {
+ int width = 0;
+ int height = 0;
+ GetSize( &width, &height );
+ gdk_draw_rectangle( m_window, m_brushGC, TRUE, 0, 0, width, height );
+ };
};
void wxPaintDC::SetFont( const wxFont &font )