The render window is scaled improperly when Windows display scale is set to greater than 100%

Hi. I have a QHD monitor (2560x1440), and I have my display scale set to 150% for readability. Unfortunately, in Python mode, the render window is also scaled up the same amount, making things very jagged. I didn’t realize the issue until comparing a test code in both Python and Java mode. When I switch it to 100% scale, they both render the same. Is this a bug? Is there code I can add to make it work properly? I’ve tested a lot and nothing seems to work. Thanks in advance.