mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-22 02:09:48 +01:00
docs: specify that pixel coordinates of hotspot are rounded to the nearest (#28)
Since we now have a raw API, we shall specify how this is calculated, so users of the raw API can do the same in their rendering code.
This commit is contained in:
parent
17ebb7fff0
commit
e5e3d140a4
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ resize_algorithm = bilinear
|
||||||
|
|
||||||
# "hotspot" is where in your cursor the actual "click point" should be.
|
# "hotspot" is where in your cursor the actual "click point" should be.
|
||||||
# this is in absolute coordinates. x+ is east, y+ is north.
|
# this is in absolute coordinates. x+ is east, y+ is north.
|
||||||
|
# the pixel coordinates of the hotspot at size are rounded to the nearest:
|
||||||
|
# (round(size * hotspot_x), round(size * hotspot_y))
|
||||||
hotspot_x = 0.0 # this goes 0 - 1
|
hotspot_x = 0.0 # this goes 0 - 1
|
||||||
hotspot_y = 0.0 # this goes 0 - 1
|
hotspot_y = 0.0 # this goes 0 - 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue