Skip to content
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

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

quikee
Copy link
Contributor

@quikee quikee commented Aug 13, 2024

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

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@quikee quikee force-pushed the master branch 2 times, most recently from 2cf1531 to 0912eb6 Compare August 13, 2024 14:24
let resolutionWidth = 960;
let resolutionHeight = 540;

if (width > 1920 || height > 1080) {
resolutionWidth = 1920;
resolutionHeight = 1080;
Copy link
Contributor

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 ?

Copy link
Contributor Author

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
@quikee
Copy link
Contributor Author

quikee commented Aug 13, 2024

Fixed the issues

let resolutionWidth = 960;
let resolutionHeight = 540;

if (width > 1920 || height > 1080) {
if (width > 3840 || height > 2160) {
Copy link
Contributor

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

Copy link
Contributor

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

@mcecchetti
Copy link
Contributor

Fixed the issues

Thanks! Looks fine to me now.

@quikee quikee merged commit 42e9dac into CollaboraOnline:master Aug 14, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants