summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-21 13:43:59 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-21 13:43:59 +0100
commitcc8973de75b9c484decac5f6e13fcba62658b8e6 (patch)
tree210e3054f53bc45a59d266396f6cc90531655351 /src
parentcbaed1119cdf3acb8662e5240f59706722437d94 (diff)
Fix up subtitle positioning under crop.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index f029a1a38..8c1ce34e0 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -182,8 +182,8 @@ private:
_subtitle->transformed_image = _subtitle->base_image;
_subtitle->transformed_image.Rescale (_subtitle->transformed_area.width, _subtitle->transformed_area.height, wxIMAGE_QUALITY_HIGH);
- _subtitle->transformed_area.x -= _film->crop().left;
- _subtitle->transformed_area.y -= _film->crop().top;
+ _subtitle->transformed_area.x -= rint (_film->crop().left * x_scale);
+ _subtitle->transformed_area.y -= rint (_film->crop().top * y_scale);
_subtitle->bitmap.reset (new wxBitmap (_subtitle->transformed_image));
}
}