- dc.DrawText( line, x, y );
- if (m_lang != wxSOURCE_LANG_NONE)
- {
- dc.SetTextForeground( m_keywordColour );
- dc.DrawText( keyword, x, y );
- dc.SetTextForeground( m_defineColour );
- dc.DrawText( define, x, y );
- dc.SetTextForeground( m_variableColour );
- dc.DrawText( variable, x, y );
- dc.SetTextForeground( m_commentColour );
- dc.DrawText( comment, x, y );
- dc.SetTextForeground( m_stringColour );
- dc.DrawText( my_string, x, y );
- dc.SetTextForeground( *wxBLACK );
- }
+ DrawLinePart( dc, x, y, line, line2, *wxBLACK );
+ DrawLinePart( dc, x, y, selection, line2, *wxWHITE );
+ DrawLinePart( dc, x, y, keyword, line2, m_keywordColour );
+ DrawLinePart( dc, x, y, define, line2, m_defineColour );
+ DrawLinePart( dc, x, y, variable, line2, m_variableColour );
+ DrawLinePart( dc, x, y, comment, line2, m_commentColour );
+ DrawLinePart( dc, x, y, my_string, line2, m_stringColour );