document that text drawing is not affected by the current logical function and update the sample to not imply that it is (#9842)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-21 21:14:58 +00:00
parent 08de440369
commit e928566f7d
2 changed files with 8 additions and 9 deletions

View File

@@ -811,20 +811,20 @@ void MyCanvas::DrawText(wxDC& dc)
// test the logical function effect
wxCoord y = 150;
dc.SetLogicalFunction(wxINVERT);
dc.DrawText( _T("There should be no text below"), 110, 150 );
// text drawing should ignore logical function
dc.DrawText( _T("There should be a text below"), 110, 150 );
dc.DrawRectangle( 110, y, 100, height );
// twice drawn inverted should result in invisible
y += height;
dc.DrawText( _T("Invisible text"), 110, y );
dc.DrawText( _T("Visible text"), 110, y );
dc.DrawRectangle( 110, y, 100, height );
dc.DrawText( _T("Invisible text"), 110, y );
dc.DrawText( _T("Visible text"), 110, y );
dc.DrawRectangle( 110, y, 100, height );
dc.SetLogicalFunction(wxCOPY);
y += height;
dc.DrawRectangle( 110, y, 100, height );
dc.DrawText( _T("Visible text"), 110, y );
dc.DrawText( _T("Another visible text"), 110, y );
}
static const struct