Bug fix for Qt Hex editor row/column highlighting in ROM view.

This commit is contained in:
mjbudd77 2022-01-29 15:36:13 -05:00
parent 1f20021946
commit 44f81dedc3
1 changed files with 6 additions and 2 deletions

View File

@ -4008,8 +4008,12 @@ void QHexEdit::paintEvent(QPaintEvent *event)
if ( reverseVideo ) if ( reverseVideo )
{ {
painter.setPen( romFgColor ); painter.setPen( romFgColor );
painter.fillRect( x - (0.5*pxCharWidth) , recty, pxCharWidth3, pxLineSpacing, romBgColor );
painter.fillRect( pxHexAscii + (col*pxCharWidth) - pxLineXScroll, recty, pxCharWidth, pxLineSpacing, romBgColor ); if ( bgColor != romBgColor )
{
painter.fillRect( x - (0.5*pxCharWidth) , recty, pxCharWidth3, pxLineSpacing, romBgColor );
painter.fillRect( pxHexAscii + (col*pxCharWidth) - pxLineXScroll, recty, pxCharWidth, pxLineSpacing, romBgColor );
}
} }
else else
{ {