Bug 1862061 - Fix wrench build bustage.

MANUAL PUSH: Trivial build fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2023-11-01 11:04:11 +01:00
Родитель 1dfc60fefb
Коммит ee9d511231
2 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -511,7 +511,6 @@ impl Wrench {
size: f32,
flags: FontInstanceFlags,
render_mode: Option<FontRenderMode>,
bg_color: Option<ColorU>,
synthetic_italics: SyntheticItalics,
) -> FontInstanceKey {
let key = self.api.generate_font_instance_key();
@ -521,9 +520,6 @@ impl Wrench {
if let Some(render_mode) = render_mode {
options.render_mode = render_mode;
}
if let Some(bg_color) = bg_color {
options.bg_color = bg_color;
}
options.synthetic_italics = synthetic_italics;
txn.add_font_instance(key, font_key, size, Some(options), None, Vec::new());
self.api.send_transaction(self.document_id, txn);

Просмотреть файл

@ -329,7 +329,7 @@ pub struct YamlFrameReader {
image_map: HashMap<(PathBuf, Option<i64>), (ImageKey, LayoutSize)>,
fonts: HashMap<FontDescriptor, FontKey>,
font_instances: HashMap<(FontKey, FontSize, FontInstanceFlags, Option<ColorU>, SyntheticItalics), FontInstanceKey>,
font_instances: HashMap<(FontKey, FontSize, FontInstanceFlags, SyntheticItalics), FontInstanceKey>,
font_render_mode: Option<FontRenderMode>,
allow_mipmaps: bool,