Use white background for drawing lines in the drawing sample

This makes the display more readable, black on red was really not ideal.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-03-27 11:39:03 +01:00
parent 8886f47ee4
commit 62bb47cfdb

View File

@@ -639,7 +639,7 @@ void MyCanvas::DrawTestPoly(wxDC& dc)
void MyCanvas::DrawTestLines( int x, int y, int width, wxDC &dc ) void MyCanvas::DrawTestLines( int x, int y, int width, wxDC &dc )
{ {
dc.SetPen( wxPen( *wxBLACK, width ) ); dc.SetPen( wxPen( *wxBLACK, width ) );
dc.SetBrush( *wxRED_BRUSH ); dc.SetBrush( *wxWHITE_BRUSH );
dc.DrawText(wxString::Format("Testing lines of width %d", width), x + 10, y - 10); dc.DrawText(wxString::Format("Testing lines of width %d", width), x + 10, y - 10);
dc.DrawRectangle( x+10, y+10, 100, 190 ); dc.DrawRectangle( x+10, y+10, 100, 190 );