mirror of https://github.com/odrling/Aegisub
Change pan values with the zoom level changes
This commit is contained in:
parent
808ead65bf
commit
d73dfe9c18
|
@ -408,6 +408,8 @@ void VideoDisplay::ResetPan() {
|
||||||
|
|
||||||
void VideoDisplay::SetZoom(double value) {
|
void VideoDisplay::SetZoom(double value) {
|
||||||
if (value == 0) return;
|
if (value == 0) return;
|
||||||
|
pan_x *= value / zoomValue;
|
||||||
|
pan_y *= value / zoomValue;
|
||||||
zoomValue = std::max(value, .125);
|
zoomValue = std::max(value, .125);
|
||||||
size_t selIndex = zoomValue / .125 - 1;
|
size_t selIndex = zoomValue / .125 - 1;
|
||||||
if (selIndex < zoomBox->GetCount())
|
if (selIndex < zoomBox->GetCount())
|
||||||
|
|
Loading…
Reference in New Issue