Skip to content

Commit

Permalink
Fix mouse cursor size on lo-dpi Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 10, 2018
1 parent 1402f76 commit 55a3eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 55a3eda

Please sign in to comment.