diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-18 19:39:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-18 19:39:23 +0000 |
| commit | 78ef2afb8e64fd0093b2f94b3f8246dba0a8058f (patch) | |
| tree | 1c3304f241fed2eb8f567b27d74b620169e13eda /src/lib | |
| parent | 68f6efd164b0db1588513a8b8d3402eedb7bb86b (diff) | |
Fix subtitle positioning in the view, I think (#60).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/subtitle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/subtitle.cc b/src/lib/subtitle.cc index bd5f0c879..5bb91af63 100644 --- a/src/lib/subtitle.cc +++ b/src/lib/subtitle.cc @@ -134,8 +134,8 @@ subtitle_transformed_area ( * Combining these two translations gives these expressions. */ - tx.x = target_x_scale * (sub_area.x + (sub_area.width * (1 - subtitle_scale) / 2)); - tx.y = target_y_scale * (sub_area.y + (sub_area.height * (1 - subtitle_scale) / 2)); + tx.x = rint (target_x_scale * (sub_area.x + (sub_area.width * (1 - subtitle_scale) / 2))); + tx.y = rint (target_y_scale * (sub_area.y + (sub_area.height * (1 - subtitle_scale) / 2))); return tx; } |
