Commit 5ebf13d
Add option to limit canvas size
JSO struggles with complex subtitles on HiDPI canvasses,
so limiting the size can make sense if such subtitles are expected.
This was ported from jellyfin's fork and jellyfin-web uses this on at
least some devices. In the original implementation prescaleHeightLimit
would override maxRenderHeight if it was larger. This undocumentend
behaviour was dropped here as it seemed unintuitive and unhelpful.
[Vasily <just.one.man@yandex.ru>]
Original implementation together with prescaling in
jellyfin@345d701
jellyfin@4c5f018
[Dmitry Lyzo]
Rebased for upstream; seperated from the prescaling;
removed default height limit and added docs
[Oneric]
Renamed hardHeightLimit to maxRenderHeight;
split from prescaling.
Co-Authored-By: Dmitry Lyzo <ashephard0@gmail.com>1 parent e9fc7c5 commit 5ebf13d
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
423 | 427 | | |
424 | 428 | | |
425 | 429 | | |
| |||
0 commit comments