summaryrefslogtreecommitdiff
path: root/src/lib/subtitle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-16 01:46:18 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-16 01:46:18 +0100
commit763acf87c7c80d508f6c10af0f3f46045d5c23df (patch)
tree72cf7b3da0f300bbf2f6dfb45e5b53ce3803d368 /src/lib/subtitle.cc
parent5428006e97b37d757a03c14024d7a0fb363bdcc6 (diff)
Try to make client/server communications a little more robust.
Diffstat (limited to 'src/lib/subtitle.cc')
-rw-r--r--src/lib/subtitle.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/subtitle.cc b/src/lib/subtitle.cc
index 7e1ca2d2a..01e8cac13 100644
--- a/src/lib/subtitle.cc
+++ b/src/lib/subtitle.cc
@@ -93,8 +93,8 @@ subtitle_transformed_area (
/* We will scale the subtitle by the same amount as the video frame, and also by the additional
subtitle_scale
*/
- tx.w = sub_area.w * target_x_scale * subtitle_scale;
- tx.h = sub_area.h * target_y_scale * subtitle_scale;
+ tx.width = sub_area.width * target_x_scale * subtitle_scale;
+ tx.height = sub_area.height * target_y_scale * subtitle_scale;
/* Then we need a corrective translation, consisting of two parts:
*
@@ -108,8 +108,8 @@ subtitle_transformed_area (
* Combining these two translations gives these expressions.
*/
- tx.x = target_x_scale * (sub_area.x + (sub_area.w * (1 - subtitle_scale) / 2));
- tx.y = target_y_scale * (sub_area.y + (sub_area.h * (1 - subtitle_scale) / 2));
+ 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));
return tx;
}