mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix mouse cursor size on lo-dpi Windows builds
This commit is contained in:
parent
1402f76e85
commit
55a3edaf53
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user