plainlab / plainprinter

Take multiple screenshots and convert them into a PDF file
GNU General Public License v3.0
51 stars 10 forks source link

Fix Windows issue #21

Closed toxybenzoic closed 1 year ago

toxybenzoic commented 1 year ago

Fixes #17.

The problem was caused by windows only accepting integer screen point values. Since multiplying the scaleFactor with the x, y, width, and height could produce decimal numbers, I floored them.

I also multiplied the mouse position by the scaleFactor.

manhtai commented 1 year ago

Thanks, merge now and will release later.