Program run with 4.3.4 does not run the same with version 4.4.2 and later version

Hello @ndphillips,

What operating system are you using?

This is my working solution for JAVA2D or FX2D with W11 and Processing 4.5.7:

import processing.javafx.*; // If using FX2D otherwise comment out

static 
  {
// Force 1:1 pixel rendering by disabling OS-level UI scaling before the graphics engine loads

  //JAVA2D
  System.setProperty("sun.java2d.uiScale", "1");
  
  //FX2D
  System.setProperty("glass.win.uiScale", "1");
  }

void settings()
{
size(400, 400, JAVA2D);
//size(400, 400, FX2D);
//size(400, 400, P2D);
 }

Modify as required for your preferred renderer.

References:

:-)