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

**URL:** <https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932>\
**Category:** Processing.py\
**Created:** [May 18, 2022, 1:33am UTC](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932 "2022-05-18T01:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Metamere](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@Metamere](https://discourse.processing.org/u/Metamere)\
**Post date:** [May 18, 2022, 1:33am UTC](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932/1 "2022-05-18T01:33:54Z")

</div>

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.

 ![python java comparison](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/a/6a564f9179944270be17d5c0ea524862c38a18b6.jpeg)

---

<div class="post-metadata">

**Author:** ![DavidGR74](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/davidgr74/32/18371_2.png) [@DavidGR74](https://discourse.processing.org/u/DavidGR74)\
**Post date:** [May 14, 2023, 5:47pm UTC](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932/2 "2023-05-14T17:47:39Z")

</div>

I have exactly the same problem in windows 10, using the java version. Using processing 4.2 from the included editor works fine. Using the libraries from an external IDE (Netbeans) reproduces the same error.  
Using Netbeans, the variables displayWidth and displayHeight are incorrectly calculated when the “layout and scale” windows setting is set to \>100%, but are correctly computed from the Processing editor.

For example, in a 1920x1080 display, when layout and scale is set to 150%, the variables computed when running from netbeans are:  
displayHeight: 720  
displayWidth: 1280  
that is, scaled 1/150%=75%.  
and from the Processing editor are:  
displayHeight: 1080  
displayWidth: 1920 (both correct)  
Both methods are using the same core.jar library. There seems to be a configuration tweak when calling from the Processing editor that I can’t find.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [May 14, 2023, 7:28pm UTC](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932/3 "2023-05-14T19:28:48Z")

</div>

Hello @Metamere,

There is a related discussion here:

> [@Decreased quality when coding outside the Processing IDE](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818/2):
>
> Hello, Related: In the Processing settings there is something to Disable HiDPI Scaling: Also look into: This is not a direct answer to your question but a starting point to explore this. slight_smile

`:)`
