Take DPI scaling into account for wxDataViewCtrl scroll rate

Use FromDIP() to make scrolling work visually the same in high DPI as in
normal one.
This commit is contained in:
Vadim Zeitlin
2022-01-22 17:16:24 +00:00
parent 906808b8e5
commit e6addf1128

View File

@@ -3387,7 +3387,7 @@ void wxDataViewMainWindow::RecalculateDisplay()
int height = GetLineStart( GetRowCount() ); int height = GetLineStart( GetRowCount() );
SetVirtualSize( width, height ); SetVirtualSize( width, height );
GetOwner()->SetScrollRate( 10, m_lineHeight ); GetOwner()->SetScrollRate( FromDIP(10), m_lineHeight );
UpdateColumnSizes(); UpdateColumnSizes();
Refresh(); Refresh();