# Update Processing 3.5.4 to 4.3 window size

**URL:** https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197
**Category:** Processing
**Created:** [November 12, 2023, 10:50am UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197 "2023-11-12T10:50:06Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 12, 2023, 10:50am UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/1 "2023-11-12T10:50:06Z")

</div>



---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [November 12, 2023, 12:51pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/2 "2023-11-12T12:51:19Z")

</div>

Welcome to the forum.

What is your question?

---

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 12, 2023, 8:00pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/3 "2023-11-12T20:00:54Z")

</div>

I have an old program using processing 3.5.4. “Main window” size is 1500x1700 (background window) . This fits the PC screen, and all buttons fits.

When I upgrade to version 4.3 , only part of the “Main window” is visible and I can’t see some of the buttons.  
Please advice  
Thanks

---

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 12, 2023, 8:12pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/4 "2023-11-12T20:12:40Z")

</div>

Loading the program (on same PC) looks like there is a Global scaling problem between 3.5.4 to 4.3.  
4.3 looks to be larger and “overflow” out of the screen. all buttons and text looks bigger.  
About 2x in width and 2x in height. Total of 4x magnification/scaling

---

<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: [November 12, 2023, 10:12pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/5 "2023-11-12T22:12:39Z")

</div>

Hello @meirbns,

This may help:

> **[displayDensity() / Reference](https://processing.org/reference/displayDensity_.html)**
>
> This function returns the number "2" if the screen is a high-density screen (called a Retina display on OS X or high-dpi on Windows and Linux) and a "1" if not. This information is useful for a progra…

Give it a try!

`:)`

---

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 12, 2023, 10:42pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/6 "2023-11-12T22:42:45Z")

</div>

Hi glv,  
Thanks for the reply. I tried this command it does not help.

Thanks !

---

<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: [November 12, 2023, 11:20pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/7 "2023-11-12T23:20:11Z")

</div>

Go into _File \> Preferences_ and try checking _Disable HiDPI Scaling_:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/1/0158d84cfa95fee93a403fb4e407c4d06d62af09.png)

Close and restart the Processing software to see the changes.

`:)`

---

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 13, 2023, 8:01pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/8 "2023-11-13T20:01:16Z")

</div>

Hi glv, thanks ! sorry for the late reply.

I tried the “HiDPI Scaling”, it affects the editing screen only. not the programed GUI window. The programed window is still twice the size as using the old version 3.5.4

It seems like there should be a separate ‘scale’ control for the already programed GUI window.

Thanks again.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [November 13, 2023, 9:11pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/9 "2023-11-13T21:11:04Z")

</div>

You could try the [pixelDensity()](https://processing.org/reference/pixelDensity_.html) method. In `setup` add the line

`pixelDensity(1);`

immediately after the call to `size(...)` can’t be sure it will work but worth trying.

---

<div class="post-metadata">

### Author: ![meirbns](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@meirbns](https://discourse.processing.org/u/meirbns)
#### Post date: [November 14, 2023, 7:54pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197/10 "2023-11-14T19:54:36Z")

</div>

Thanks Quark,  
I added pixelDensity(1); Unfortunately, It does not help.

Even changing in the desktop screen resolution from 3840x2160 to 1920x 1080 does not help with the 2x windows oversize on 4.3 version. ( of course it effects the whole screens appearance… beside the  
programed window).

The only thing which brings the programed main window to its normal size (as v 3.5.4) is by  
changing: desktop/setting/scale from 200% to 150% ( with all the penalties Ii have to pay on the laptop  
screens).

My conclusion is that on 3.5.4 version, while running the program it calls for different sizing than on 4.3ver. actually 3.5.4 increases the scaling of the ruining program.  
The correct one is v4.3. I will change the whole program to match 4.3 version. quit a work but I fill exhausted investing time on the differences between versions.  
Thanks, and I really appreciate the help !
