processing / processing/libprocessing
Window size discrepancy on HighDPI monitor
未关闭
还没有人认领这个 Issue。
- 主要语言
- Rust
- 星标
- 69
- 派生
- 14
- 平均合并
- 15 天 22 小时
- 30 天内合并 PR
- 3
描述
Running the same sketch on a HighDPI monitor appears to create a larger window than necessary.
4K HighDPI monitor
1080p monitor
Version: mewnala 0.0.7
Code
"""
Redraw.
The redraw() function makes draw() execute once.
In this example, draw() is executed once every time
the mouse is clicked.
"""
from mewnala import *
y = 180
def setup():
"""
The statements in the setup() function
execute once when the program begins.
"""
size(640, 360) # Size should be the first statement
stroke(255) # Set line drawing color to white
no_loop()
def draw():
"""
The statements in draw() are executed until the
program is stopped. Each statement is executed in
sequence and after the last line is read, the first
line is executed again.
"""
global y
background(0) # Set the background to black
y = y - 4
if (y < 0):
y = height
line(0, y, width, y)
def mouse_pressed():
redraw()
run()
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 sketch 中的 size(640, 360) 调用开始,比较两种显示器类型上的窗口创建和 HighDPI 行为。追踪实现中的窗口大小设置入口点;当同一个 sketch 在 HighDPI 和标准显示器上都产生预期且一致的窗口大小时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python, rust
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100