# Renderers (and Windows scaling)

**URL:** <https://discourse.processing.org/t/renderers-and-windows-scaling/47524>\
**Category:** Processing\
**Created:** [November 10, 2025, 8:10am UTC](https://discourse.processing.org/t/renderers-and-windows-scaling/47524 "2025-11-10T08:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 10, 2025, 10:10pm UTC](https://discourse.processing.org/t/renderers-and-windows-scaling/47524/3 "2025-11-10T22:10:02Z")

</div>

> [@sterretje](#):
>
> In Processing 4.3 a sketch with a `size(200, 200)` the canvas indeed 200x200 pixels; in Processing 4.4.7 it the scaling factor larger (250x250).

Solution on my system with Windows 10 and Windows Scaling = 125% :

_[DPI Renderer Scaling Override for JAVA2D](https://discourse.processing.org/t/dpi-renderer-scaling-override-for-java2d/47439)_

This is a workaround on my system for _fullscreen(P2D)_ :

```auto
/*
 * Fullscreen P2D Workaround
 *
 * Author: glv
 * Date: 2025-11-09
 *
*/

static 
  {
  // Forces 1:1 pixel rendering by disabling OS-level DPI scaling
  
  System.setProperty("sun.java2d.uiScale", "1.01"); // If this is 1.0 it does NOT work!
  //System.setProperty("sun.java2d.DPIscaling", "false"); // No effect.
  }

void setup() 
  {
  //size(1920, 1200, P2D);
  
  fullScreen(P2D, 2); // 0 is span, 1 is monitor 1, 2 is monitor 2
  println(SPAN);
  println(width, height);
  //surface.setLocation(50, 50); // Does NOT work with monitor 2 and will go to monitor 1!
  }

void draw() 
  {
  // Helps to see the size of the screen:  
  circle(50, 50, 50);
  circle(width-50, 50, 50);
  circle(width-50, height-50, 50);
  circle(50, height-50, 50); 
  circle(width/2, height/2, 50); 
  }

```

I came across this quite accidentally exploring this a few days ago!  
It has to be at least one pixel off to work and you will see this in the `println(width, height);` output.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/renderers-and-windows-scaling/47524)._
