Skip to content

feat(app): support hidpi#26

Merged
cloudwu merged 1 commit intocloudwu:masterfrom
yuchanns:feat/hidpi
Oct 8, 2025
Merged

feat(app): support hidpi#26
cloudwu merged 1 commit intocloudwu:masterfrom
yuchanns:feat/hidpi

Conversation

@yuchanns
Copy link
Contributor

@yuchanns yuchanns commented Oct 8, 2025

开启 sokol_app 的 hidpi, 将窗口宽高改成逻辑宽高,为 soluna 添加高清化。
image

@cloudwu cloudwu merged commit c1ead62 into cloudwu:master Oct 8, 2025
5 checks passed
@yuchanns yuchanns deleted the feat/hidpi branch October 8, 2025 05:53
@cloudwu
Copy link
Owner

cloudwu commented Oct 8, 2025

high_dpi 的设定现在移到到配置文件里去了:

默认配置在 https://github.com/cloudwu/soluna/blob/master/src/data/settingdefault.dl ,默认为 false

deepfuture 覆盖这个配置 https://github.com/cloudwu/deepfuture/blob/master/main.game ,目前设为 true

还可以从命令行传入 high_dpi=false 关闭。(命令行优先级最高,项目配置文件其次,soluna 默认配置最低,C 代码 entry.c 里的设置保底)

同时支持的还有 fullscreen 配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants