From 66e5f8e9dcd11d136b707d13c7597019c99c54b8 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Tue, 25 Feb 2014 23:37:06 +1100 Subject: eglfs: Improve cursors and hotspots Improvements * Cursor atlas has been recreated using 32x32 cursors which avoids artifacts introduced from downscaling of the busy cursor * A white outline has been added to the cursors to improve visibility on black backgrounds * Hot spot positions have been tweaked; in particular, Qt::PointingHandCursor now has a correct hot spot at the tip of the index finger instead of the center The assert which checks that the number of hot spots equals the number of cursors had an off-by-one error as the first cursor is Qt::ArrowCursor which has an enum value of 0. To determine the number of cursors, 1 needs to be added to Qt::LastCursor. Change-Id: I266b6d4cc47d42219854aa5b7e2d8344eb3a920a Reviewed-by: Laszlo Agocs --- src/plugins/platforms/eglfs/cursor-atlas.png | Bin 2735 -> 2928 bytes src/plugins/platforms/eglfs/cursor.json | 42 +++++++++++++-------------- 2 files changed, 21 insertions(+), 21 deletions(-) mode change 100644 => 100755 src/plugins/platforms/eglfs/cursor-atlas.png (limited to 'src/plugins/platforms/eglfs') diff --git a/src/plugins/platforms/eglfs/cursor-atlas.png b/src/plugins/platforms/eglfs/cursor-atlas.png old mode 100644 new mode 100755 index 8d89a7ab86..4ddb7708e1 Binary files a/src/plugins/platforms/eglfs/cursor-atlas.png and b/src/plugins/platforms/eglfs/cursor-atlas.png differ diff --git a/src/plugins/platforms/eglfs/cursor.json b/src/plugins/platforms/eglfs/cursor.json index 7b6b6d95fa..307d5cf6cd 100644 --- a/src/plugins/platforms/eglfs/cursor.json +++ b/src/plugins/platforms/eglfs/cursor.json @@ -3,26 +3,26 @@ "cursorsPerRow": 8, "hotSpots": [ [7, 2], - [13, 3], - [13, 13], - [13, 13], - [14, 15], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [13, 13], - [10, 1], - [13, 13], - [0, 0], - [0, 0], - [13, 13], - [13, 13] + [12, 3], + [12, 12], + [12, 12], + [12, 12], + [12, 12], + [12, 12], + [12, 12], + [12, 12], + [11, 11], + [12, 12], + [12, 12], + [12, 12], + [9, 1], + [12, 12], + [1, 1], + [1, 1], + [12, 12], + [12, 12], + [12, 12], + [12, 12], + [12, 12] ] } - -- cgit v1.2.3