Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix mouse cursor size on lo-dpi Windows builds
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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 ) |
|
|