K-RT-Dev / VGT

Program to translate Japanese text through image recognition and GPT 3.5
MIT License
62 stars 5 forks source link

Floor fractional screen dimensions #5

Open rDarge opened 1 year ago

rDarge commented 1 year ago

Should fix #1

I've experienced the linked issue when using fractional scaling on ubuntu and win11, and have determined it to be due to a conversion error thrown when decimal numbers are supplied as thumbnail size parameters to desktopCapturer.getSources

A quick fix is to just floor the fractional pixels. I've tested this locally on my win11 laptop.