cea608overlay: Fix compilation after Pango API changes

This commit is contained in:
Sebastian Dröge 2021-11-13 12:33:55 +02:00
parent 78d7cbd7dd
commit e81047b8a2

View file

@ -159,7 +159,7 @@ impl Cea608Overlay {
if self.settings.lock().unwrap().black_background { if self.settings.lock().unwrap().black_background {
let attrs = pango::AttrList::new(); let attrs = pango::AttrList::new();
let attr = pango::AttrColor::new_background(0, 0, 0).upcast(); let attr = pango::AttrColor::new_background(0, 0, 0);
attrs.insert(attr); attrs.insert(attr);
layout.set_attributes(Some(&attrs)); layout.set_attributes(Some(&attrs));
} }