processing / processing/processing4
Need non-AWT ways to get display count, width, height, pixel density
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
Created by: benfry
We need either 1) an alternative/native method to make these work, or 2) a per-Surface version of them.
The second option is still problematic since we don't know what PSurface will be used when settings() is called. So either we need to start passing that to the command line, or do something more clever, i.e. once size() or fullScreen() is called, use the renderer to create an object that can handle these device settings on a per-surface type basis.
For now, displayWidth and displayHeight will be 0 when --disable-awt is used.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪使用 --disable-awt 时如何处理 displayWidth、displayHeight 和像素密度,然后检查 issue 中提到的 size()、fullScreen()、renderer 和 PSurface 路径。完成的标准是提供一个已定义的非 AWT 实现或可行的按 Surface 处理方案,而不是为显示尺寸返回 0。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- desktop
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100