From 06c8874752a891ebb44f079c2361abd4dd411e19 Mon Sep 17 00:00:00 2001 From: Ray Tiley Date: Tue, 8 Oct 2024 16:30:43 -0400 Subject: [PATCH] [cea608overlay] - don't indent centered text. Adding the additional 10% padding was causing captions to render to far to the right. Part-of: --- video/closedcaption/src/cea608utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/closedcaption/src/cea608utils.rs b/video/closedcaption/src/cea608utils.rs index e8f3ad6f..a210a843 100644 --- a/video/closedcaption/src/cea608utils.rs +++ b/video/closedcaption/src/cea608utils.rs @@ -550,7 +550,7 @@ impl Cea608Renderer { self.layout.set_alignment(pango::Alignment::Left); let (max_layout_width, _max_layout_height) = recalculate_pango_layout(&self.layout, width, height); - self.left_alignment = (width as i32 - max_layout_width) / 2 + width as i32 / 10; + self.left_alignment = (width as i32 - max_layout_width) / 2; self.rectangle.take(); } }