subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

Option to scale cursor on Linux for high dpi screens? #96

Closed subsoap closed 5 years ago

subsoap commented 5 years ago

2019-03-20 16_27_50-messages_ messages

dapetcu21 commented 5 years ago

Fixed in v2.2.1. Just use two pngs in the xcreatecursor config, one at size 24 and the 2x one at size 48 (the actual pixel size can be whatever. 24/48 is just the cursor font size (the first column in the config)).

Example:

48 19 19 cursor@2x.png 100
24 10 9 cursor.png 100