When I get home I'll give you a dump of info. It's a 4k screen with something like 150% UI scaling. Windows. Chrome. I'll test it in Ubuntu and on my other pc.
Something to be aware of is to use integer math where possible when dealing with canvas coordinates and drawing. I found I ran into similar issues when I allowed fractions to get into my system.
Comments
Good point. I'll fix that. Do you mind telling me your screen resolution? I think this problem may be more pronounced on relatively low-res screens.
When I get home I'll give you a dump of info. It's a 4k screen with something like 150% UI scaling. Windows. Chrome. I'll test it in Ubuntu and on my other pc.
Something to be aware of is to use integer math where possible when dealing with canvas coordinates and drawing. I found I ran into similar issues when I allowed fractions to get into my system.