Commit 7f3091b
committed
src/definition/structuredrichtext: use primary screen when current null
When the current screen is null, use the primary screen from
QGuiApplication to get the DPI. This fixes the first result being
rendered with the wrong DPI in most cases. It is kind of hard to fix in
cases where screens with multiple DPIs are mixed and matched, but those
are niche. This works in the general case.
This commit was written by Codex and edited by me.1 parent 8c141a4 commit 7f3091b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
2071 | 2072 | | |
2072 | 2073 | | |
2073 | 2074 | | |
2074 | | - | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
2075 | 2080 | | |
2076 | 2081 | | |
2077 | 2082 | | |
| |||
0 commit comments