From 06530d716c629d41d2f37602f5063c23a64f6ba9 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Thu, 18 Oct 2007 16:33:46 +0000 Subject: [PATCH] Fix to resampler Originally committed to SVN as r1609. --- aegisub/dialog_resample.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aegisub/dialog_resample.cpp b/aegisub/dialog_resample.cpp index cfa368ea9..2dd572cf5 100644 --- a/aegisub/dialog_resample.cpp +++ b/aegisub/dialog_resample.cpp @@ -212,6 +212,10 @@ void DialogResample::OnResample (wxCommandEvent &event) { return; } + // Add margins to original resolution + x1 += m[0] + m[1]; + x2 += m[2] + m[3]; + // Calculate resamples rx = double(x2)/double(x1); ry = double(y2)/double(y1);