This cursor is active when the widget has the mouse focus. You know,
like textboxes are wont to do anywhere else. Took long enough, although
there was an interaction issue with tooltips fixed in the previous
commit.
I still need to figure out how to make this work with GUI1 textboxes
(e.g. in-game console).
The colour version of the cursor was kindly provided by LordBob, and the
B&W version is my own.
Overall statistics (only for files with a smaller recompressed size):
Original size: 485 KiB on 277 files
Optimized size: 447 KiB
Total saving: 37 KiB = 7% decrease
NOTE: Extremely many files received (smaller) changes but due to the
extremely large amount of changes I am not 100% sure that this
conversion is correct. This is the output of
utils/png_format_check.sh:
RGBA: 10247 RGB: 10 Gray+A: 256 Gray: 0 Index+A: 0 Index: 0 Other: 0
Overall statistics (only for files with a smaller recompressed size):
Original size: 128949 KiB on 9778 files
Optimized size: 125813 KiB
Total saving: 3135 KiB = 2% decrease
(used for hiding them while using color ones)
- remade the image (to skip a possible effect of the recent pngcrush)
- add a black pixel, in case of mac have problem with fully
transparent cursor image png
(this black pixel is almost invisible but must be removed later, or
used only with mac if it fix the bug)
...just use a transparent one (SDL seems to have mouse problems when
hiding the cursor in fullscreen). And we now don't update the b&w
cursors when unused.