Help with setting window size

Hello

Can anyone help - this code works on a mac but on windows it displays the window as fukkscreen i.e. it does not do the divided by 2. Why?

void settings()
{
  // This command sets the size of the sketch window.
  size(displayWidth / 2, displayHeight);
}

Hello @DeeDee,

It works correctly for me with W10 and Processing 4.01.

void settings()
  {
  // This command sets the size of the sketch window.
  println(displayWidth, displayHeight);
  println(displayWidth/2, displayHeight);
  size(displayWidth/2, displayHeight);
  }

:)

1 Like