# Processing 4.0.1 sketch window scales 200%

**URL:** <https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349>\
**Category:** Processing\
**Created:** [October 19, 2022, 12:53am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349 "2022-10-19T00:53:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fluffball](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Fluffball](https://discourse.processing.org/u/Fluffball)\
**Post date:** [October 19, 2022, 12:53am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/1 "2022-10-19T00:53:12Z")

</div>

Hi, I’ve been using Processing for several years and recently updated to version 4.0.1. It’s fantastic except that all of a sudden every sketch window is scaled up 200% of true screen resolution! This happens on both monitors for my Windows PC (primary 3840x2160, secondary 1680x1050) and also my M1 MacBook, display 2560x1600. Never had an issue with this in the past on either one…

Turning on “Disable HiDPI Scaling” (which is only available in the Windows version) just makes the IDE half the size which is unreadable, and the sketch still renders double size. How do I fix this??

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 19, 2022, 1:19am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/2 "2022-10-19T01:19:33Z")

</div>

Hi Sir and welcome

> [@Windows Sketch Screen Size Problem](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298):
>
> Hello everyone, I got this problem. When I’m working on Mac, I can see my design in sketch screen as exactly as I coded. But then when I try to open in my Windows laptop, I see the screen size different. In my last draft I mentioned below, I can see the whole screen on Mac but on my computer it only appears half above my screen size so i can’t even see the close button so I can’t drag and can’t see what I did as a whole. How can I solve this problem? /\*\* \* Ex…

---

<div class="post-metadata">

**Author:** ![Fluffball](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Fluffball](https://discourse.processing.org/u/Fluffball)\
**Post date:** [October 19, 2022, 1:40am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/3 "2022-10-19T01:40:17Z")

</div>

Thanks,  
Looks like that thread is referring to the location of the window and not the scale. The “scale” function is used, but as far as I know that’s just a render transform. He also mentions the window is a different size, but it likely matches his monitor, whereas mine does not. For me, everything is fine except that the width and height are twice as many pixels on screen as it says in the code - for example if I set size(500, 500) and screenshot the render window, the screenshot is 1000x1000. Again, this happens on Windows and Mac after updating to 4.0.1

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [October 19, 2022, 11:25am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/4 "2022-10-19T11:25:35Z")

</div>

Could you share a screenshot showing the problem? This sounds like it might need to be a Github issue.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [October 19, 2022, 2:32pm UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/5 "2022-10-19T14:32:04Z")

</div>

Does changing pixelDensity() do anything? [https://processing.org/reference/pixelDensity\_.html](https://processing.org/reference/pixelDensity_.html)

---

<div class="post-metadata">

**Author:** ![Fluffball](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Fluffball](https://discourse.processing.org/u/Fluffball)\
**Post date:** [October 24, 2022, 12:56am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349/6 "2022-10-24T00:56:06Z")

</div>

> [@sableraph](#):
>
> Could you share a screenshot showing the problem?

Here’s my code (indicating a target size of 480x480)

```auto
void setup(){
  size(480, 480);
}

void draw(){
  background(0);
  noStroke();
  fill(255);
  ellipse(width/2, height/2, width, height);
  fill(0);
  textAlign(CENTER, CENTER);
  textSize(100);
  text("hello\nworld!", width/2, height/2);
  textSize(20);
  text("hello\nworld!", width/2, height/2);
}

```

And here’s a screenshot of me taking a screenshot of the render window (showing the true resolution to be 960x960)

 ![render window](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/b/db68d12a8e630c59bfad930e67c39849f3fddda3.jpeg)

> [@svan](#):
>
> Does changing pixelDensity() do anything?

Good thought, but looks like not… I can change it to 2 which of course just makes the issue twice as bad, but it doesn’t seem to support 0.5 as a value.
