full screen bug with few device
@catilac 已经在做这个了。
开始于 2026年6月9日。
评估
这个 Issue 还没有评估数据。
描述
Most appropriate sub-area of Processing 4?
Core/Environment/Rendering
Processing version
Processing 4.5.2
Operating system
MacOS Tahoe 26.4.2
Bug description
With my Video Projector BenQ PJ in fullscreen() in P3Dand in P2D the window is place on the main screen.
In classic mode that's ok.
May be it's due from my VP because this one is old, I don't know. The definition of my VP is 1920x1080
To fix it I use this code :
import java.awt.GraphicsEnvironment;
import java.awt.GraphicsDevice;
import java.awt.Rectangle;
int target_screen = 2;
void setup() {
fullScreen(P3D,target_screen);
secure_screen_place(target_screen);
}
void secure_screen_place(int target) {
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] devices = environment.getScreenDevices();
Rectangle rect = devices[this.display -1].getDefaultConfiguration().getBounds();
surface.setLocation(0,0);
int x = (int)rect.getX();
int y = (int)rect.getY();
println("repositionnement", x, y);
surface.setLocation(x,y);
}
For an unknown reason it's necessary to set in first the location to zero before move to goal position.
May be it's linked to
https://github.com/processing/processing4/issues/1518
https://github.com/processing/processing4/issues/1426
I fix this bug in Processing If you're interested I can push it !!!
But it's more an hack, because It's hard to manage the variable between the static and the non static class PApplet and PSurface
- 主要语言
- Java
- 星标
- 497
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
processing/processing4 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
processing/processing4#1554 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
processing/processing4#1515 · 1 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
processing/processing4#1573 ·
-
startup error 未关闭
难度 4/5 3-5 天 新手友好度 25/100
processing/processing4#1569 · 7 条评论 ·
-
Binaries under bin directory lack executable permissions for the snap and .deb packages for Linux 未关闭bug
processing/processing4#1567 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
查看 processing/processing4 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
elastic/gradle-plugins#157 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
cryptomator/hub#497 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
johanhaleby/occurrent#1120 ·