# Window larger than expected with FX2D

**URL:** <https://discourse.processing.org/t/window-larger-than-expected-with-fx2d/42809>\
**Category:** Libraries\
**Created:** [September 21, 2023, 5:39pm UTC](https://discourse.processing.org/t/window-larger-than-expected-with-fx2d/42809 "2023-09-21T17:39:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![User442B](https://avatars.discourse-cdn.com/v4/letter/u/db5fbb/32.png) [@User442B](https://discourse.processing.org/u/User442B)\
**Post date:** [September 21, 2023, 5:39pm UTC](https://discourse.processing.org/t/window-larger-than-expected-with-fx2d/42809/1 "2023-09-21T17:39:10Z")

</div>

I have noticed that the window size is not correct when setting the renderer to FX2D. My monitor’s resolution is 1920x1080, and when I run this sketch:

```auto
color black = color(36,39,45);
color green = color(141,187,110);
import processing.javafx.*;

void setup(){
  size(960,540,FX2D);
}

void draw(){
  background(green);
}

```

The window is wider than half the screen, so it is larger than expected. If I switch back to P2D or the default renderer the window is the proper size. Any ideas why this might be?

---

<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:** [September 21, 2023, 6:56pm UTC](https://discourse.processing.org/t/window-larger-than-expected-with-fx2d/42809/2 "2023-09-21T18:56:42Z")

</div>

Screen size looks ok on a Mac. What happens if you increase your monitor resolution?

---

<div class="post-metadata">

**Author:** ![User442B](https://avatars.discourse-cdn.com/v4/letter/u/db5fbb/32.png) [@User442B](https://discourse.processing.org/u/User442B)\
**Post date:** [September 21, 2023, 9:07pm UTC](https://discourse.processing.org/t/window-larger-than-expected-with-fx2d/42809/3 "2023-09-21T21:07:20Z")

</div>

I don’t think I can increase the monitor resolution any more. However, I have found that doing  
` size(1600,900,FX2D);`  
will completely fill my screen. So it seems like the sketch is acting as if my monitor’s resolution is 1600x900 and doing some kind of scaling.

For context, this is in Windows 10
