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

Add Video Panning Option #150

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Sodra
Copy link

@Sodra Sodra commented Mar 3, 2022

Ristellise/AegisubDC has closed its doors, and with such one of the most important features, the option to zoom in and do stuff. There is also currently no way to do this on Linux/MacOS, so this should make it available.

Patched from Aegisub#207 with snippets from DC.

Tested on Arch Linux, but should work wherever.

video_panning_example.mp4

moex3 and others added 16 commits March 2, 2022 15:01
Crosshair drawing is broken when videoAr != displayAr
I'm not sure about that scale_factor, i don't know how to test that
with a "good enough" implementation
The preview window would change in width, when the video was being zoomed.
Possibly, because on windows, zooming only calls UpdateSize once, but on
linux, it gets called multiple, like 8 times.
Rounding fixed it.
I'm not entirely sure, that this is how it's supposed to be added.
This requires editing the already existing hotkey.json file (shows path
in log, if it exists).
Should this also be added to hotkey.cpp?
This reverts commit 3d525d9.
The default hotkey is not required. People can just add a custom one
from the hotkey settings if they want this.
@frozenpandaman
Copy link

Fantastic feature! Thank you for adding it! Hoping this gets merged soon.

@arch1t3cht
Copy link
Member

This works great for me, although I noticed that the Video Panning option should also be added to osx/default_config.json, just like it was added to default_config.json. As it is, this might break the preferences window on Mac.

@arch1t3cht
Copy link
Member

Also, I saw now that this change breaks Aegisub's aspect ratio forcing. I fixed it here on my fork, but as it is, this PR would just make the aspect ratio options do nothing at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants