Skip to content

Commit

Permalink
[fix #19092] fix big cursors on Mac (#8152)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Oct 15, 2018
1 parent bf2dae2 commit 4cc4bab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 4cc4bab

Please sign in to comment.