scale and offset for native mouse cursor

this should solve issue #783