-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slideshow: remove resolution adjustment - use the screen size #9792
Conversation
2cf1531
to
0912eb6
Compare
let resolutionWidth = 960; | ||
let resolutionHeight = 540; | ||
|
||
if (width > 1920 || height > 1080) { | ||
resolutionWidth = 1920; | ||
resolutionHeight = 1080; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine to add new resolutions, but why removing FHD one ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not my intention
Previously we topped out at 1920x1080 resolution, which can become a problem for screens bigger than FHD, which are capable to show a much higher resolution of the slides but are artificially limited to a smaller resolution. This change adds 2560x1440 and 3840x2160 resolution. Ideally it would be to support resolution whatever the screen supports, but as there are issues with that (sliedshow does not show transitions correctly the second time) we add more options as a stop gap solution. Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> Change-Id: I9b132ad5ac897f956768c5d5a1e77fa18cb34246
Fixed the issues |
let resolutionWidth = 960; | ||
let resolutionHeight = 540; | ||
|
||
if (width > 1920 || height > 1080) { | ||
if (width > 3840 || height > 2160) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be >
-> >=
, so 3840x2160 will be 3840x2160 in result, not 2560x1440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not needed. tested width, height are multiplied by a 1.20 (see lines 190,191)
So 4K is used for whatever is greater than 3200x1800
Thanks! Looks fine to me now. |
Previously, we adjusted the resolution of the slides, so the size of the slide would be max 1920x1080. This restriction is removed now so the slide size can use the actual size of the screen. With this change the slides look much better on a high DPI screen (4k), but will also take longer to be transfered to the client as the size of the slides is bigger also.
Change-Id: I9b132ad5ac897f956768c5d5a1e77fa18cb34246
Summary
TODO
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay