Most appropriate sub-area of Processing 4?
Core/Environment/Rendering
Processing version
4.5.6
Operating system
macOS Tahoe 26.5.2 (25F84)
Bug description
Running an empty sketch in Processing 4.5.6 produces the following warnings:
display count needs to be implemented for non-AWT
AWT disabled, displayWidth/displayHeight will be 0
Additionally, calling pixelDensity(2) produces this error:
pixelDensity(2) is not available for this display
Processing should detect the display dimensions and use pixelDensity(2) by default on the built-in Retina display.
Regression for:
Steps to reproduce this
- Install Processing 4.5.6 on macOS.
- Open Processing and create a new sketch.
- Run the sketch below.
- Observe the display-count and
displayWidth/displayHeight warnings in the console.
- Uncomment
pixelDensity(2).
- Run the sketch again.
- Observe the
pixelDensity(2) is not available for this display error.
snippet
void setup(){
size(640,400);
//pixelDensity(2);
}
void draw(){
line(10,10,630,390);
}
Additional context
Would you like to work on the issue?
No, I’m just reporting the issue
Most appropriate sub-area of Processing 4?
Core/Environment/Rendering
Processing version
4.5.6
Operating system
macOS Tahoe 26.5.2 (25F84)
Bug description
Running an empty sketch in Processing 4.5.6 produces the following warnings:
Additionally, calling
pixelDensity(2)produces this error:Processing should detect the display dimensions and use
pixelDensity(2)by default on the built-in Retina display.Regression for:
Steps to reproduce this
displayWidth/displayHeightwarnings in the console.pixelDensity(2).pixelDensity(2) is not available for this displayerror.snippet
Additional context
Would you like to work on the issue?
No, I’m just reporting the issue