Odd viewport scaling issue on Windows



I have a problem on windows, the viewport looks scaled and offset, the issue affects the drawing and the mouse events, the mouse position gets scaled and offset. I reckon this is not necessarily related to cinder, but it’s probably caused by Windows itself.

I did a quick test running the basic app drawing two squares, the orange rect should start at [5,5], but it’s drawn off-screen. The blue rect margin is wrong and the size is not square(roughly [150,160]).

any idea what could cause this? I’m running on windows 10, gtx 1050.




Could the windows scaling be the culprit here? Have a look at the PR at the end of this post:


I’ve already tried that, it didn’t work for me.