Commit Graph

5 Commits

Author SHA1 Message Date
Chris Young 95663c5660 Minor pointer corrections, added 4 colour default pointer (standard 2.0 style - to
match the 4 colour pop-up menu pointer) and 4 colour wait pointer (in a hybrid 2.0/1.3
style, it's a Zzz busy pointer with a 3D effect like the one on the default
stop-watch)

svn path=/trunk/netsurf/; revision=5426
2008-09-23 21:38:15 +00:00
Chris Young 8c4cbd2b1b 32-bit mouse pointer support.
The pointer imagery are the icon files of the 4-colour custom text file images.
Tooltypes XOFFSET and YOFFSET specify the "point" of the image.

The 32-bit pointers can be disabled by setting option truecolour_mouse_pointers:0
The OS pointers (for "Default" and "Wait" only) can be used by setting
os_mouse_pointers:1
Deleting the relevant files has the same effect :)

This complete set of 32-bit images is drawn by Martin Merz (Mason).
The code to read them is derived from sample code by Joerg Strohmayer.

svn path=/trunk/netsurf/; revision=5401
2008-09-22 20:41:01 +00:00
Chris Young 402f53f0a5 New mouse pointer images by Martin Merz (Mason)
Extended pointer size to 32x32 pixels.

svn path=/trunk/netsurf/; revision=5288
2008-09-08 21:27:35 +00:00
Chris Young 1f7e72ac06 Simple pointer imagery (hopefully temporary)
svn path=/trunk/netsurf/; revision=5229
2008-09-01 18:05:29 +00:00
Chris Young 30f0bbd256 Basic user-configurable pointer image support.
GUI_POINTER_DEFAULT and GUI_POINTER_WAIT still use the Amiga system default pointers,
and will not be overridden by NetSurf.

Pointer imagery lives in Resources/Pointers and the filenames are all defined in the
ptrs array at the top of gui.c, in the same order as in gui_pointer_shape - with the
exception of GUI_POINTER_DEFAULT (this instead points to a "Blank" pointer for hiding
the pointer) and GUI_POINTER_WAIT (reserved for future use, currently points to "Wait"
but this will change).

The file format is very simple.  It is a text file containing 16 rows of 16
characters, with a newline or CR (or, in fact, any character as this is not checked)
terminating each row.  The seventeenth row indicates the pixel on which the "point" is
set, as two digit X direction, a space, then two digits for the Y direction.

Pointers/Point is based on the hand2 image by Andreas Kuerzinger (the original is in
the AKPointerz.lha archive on Aminet)

svn path=/trunk/netsurf/; revision=5227
2008-08-31 17:34:00 +00:00