Bug 478483

Summary: Resize to fit video option does not size correctly
Product: [Applications] Haruna Reporter: Peter <sunspark>
Component: genericAssignee: george fb <georgefb899>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Peter 2023-12-13 20:32:51 UTC
SUMMARY
The "Resize to fit video" option in the Haruna settings is intended to expand or shrink the window to match the video without scaling it if the display's resolution is high enough. This is not currently working, likely because it is making an assumption about the size of the display.

STEPS TO REPRODUCE
1. Play a video file of resolution 1918x872 on a higher resolution display. 

OBSERVED RESULT
Instead of having the window shrink to fit the video with the video playing at native resolution, the window is maximized to fill the entire screen and the video is upscaled to 2048x931.

EXPECTED RESULT
That the video play at 1918x872 with no upscaling performed.

SOFTWARE/OS VERSIONS
Operating System: SteamOS 3.4.11
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
The monitor's resolution is 2048x1152. This is enough additional resolution that no video upscaling to a larger window is necessary and other players work as expected for this case.