Fix mouse cursor size on lo-dpi Windows builds

This commit is contained in:
Nyall Dawson 2018-01-10 17:02:05 +10:00
parent 1402f76e85
commit 55a3edaf53

View File

@ -547,7 +547,7 @@ QCursor QgsApplication::getThemeCursor( const Cursor &cursor )
if ( ! icon.isNull( ) )
{
// Apply scaling
float scale = app->fontMetrics().height() / 32.0;
float scale = Qgis::UI_SCALE_FACTOR * app->fontMetrics().height() / 32.0;
cursorIcon = QCursor( icon.pixmap( std::ceil( scale * 32 ), std::ceil( scale * 32 ) ), std::ceil( scale * activeX ), std::ceil( scale * activeY ) );
}
if ( app )