Draw all borders for unfocused text control in wxUniv

The borders didn't appear correctly when the control didn't have focus.

Closes https://github.com/wxWidgets/wxWidgets/pull/2494

Closes #19248.
This commit is contained in:
Kvaz1r
2021-08-25 10:48:04 +03:00
committed by Vadim Zeitlin
parent 696f1473df
commit 2a92a0a516

View File

@@ -825,15 +825,11 @@ void wxGTKRenderer::DrawTextBorder(wxDC& dc,
if ( border != wxBORDER_NONE )
{
DrawRect(dc, &rect, m_penBlack);
if ( flags & wxCONTROL_FOCUSED )
{
DrawRect(dc, &rect, m_penBlack);
DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
}
else // !focused
{
DrawInnerShadedRect(dc, &rect);
}
}
if ( rectIn )