Skip to content
Permalink
Browse files

Fix mouse cursor size on lo-dpi Windows builds

  • Loading branch information
nyalldawson committed Jan 10, 2018
1 parent 1402f76 commit 55a3edaf53508d1d57d7fd0e13438945b0848361
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsapplication.cpp
@@ -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 )

0 comments on commit 55a3eda

Please sign in to comment.
You can’t perform that action at this time.