Skip to content
Permalink
Browse files

[fix #19092] fix big cursors on Mac (#8152)

  • Loading branch information
3nids committed Oct 15, 2018
1 parent bf2dae2 commit 4cc4bab969772fc6508979166e5ab08afd0437f8
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/core/qgsapplication.cpp
@@ -596,13 +596,6 @@ QCursor QgsApplication::getThemeCursor( Cursor cursor )
{
// Apply scaling
float scale = Qgis::UI_SCALE_FACTOR * app->fontMetrics().height() / 32.0;
#ifdef Q_OS_MACX
if ( app->devicePixelRatio() >= 2 )
{
scale *= app->devicePixelRatio();
activeX = activeY = 8;
}
#endif
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 4cc4bab

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