phoboslab / jsmpeg-vnc

A low latency, high framerate screen sharing server for Windows and client for browsers
2.39k stars 397 forks source link

Invalid cursor position #10

Closed tdurieux closed 9 years ago

tdurieux commented 9 years ago

Hi,

First, thanks for this awesome tools!

The position of the cursor is not correct when the output size (option -s) ratio (width/height) is not the same as the screen ratio.

Thanks

phoboslab commented 9 years ago

Thanks! The mouse position was actually wrong for any scaling that was not whole number (i.e. 2x, or 3x), due to an integer division truncating it.