From ef9d1408945022b708aac1c26f47417f9886d680 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Wed, 18 Jan 2023 12:27:08 +0100 Subject: [PATCH] Rename font_path member to font --- src/guihandler/guihandler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/guihandler/guihandler.rs b/src/guihandler/guihandler.rs index 2737c9f..59860ca 100644 --- a/src/guihandler/guihandler.rs +++ b/src/guihandler/guihandler.rs @@ -36,7 +36,7 @@ pub struct GuiHandlerCreateInfo<'a> { // path to the alphabet image #[serde(borrow)] - pub font_path: Font<'a>, + pub font: Font<'a>, // sound info #[cfg(feature = "audio")] @@ -56,7 +56,7 @@ impl<'a> GuiHandlerCreateInfo<'a> { menu_button_selected: AssetPath::default(), // path to the alphabet image - font_path: Font::Path(AssetPath::default()), + font: Font::Path(AssetPath::default()), // sound info #[cfg(feature = "audio")] @@ -195,7 +195,7 @@ impl GuiHandler { device, queue, text_objs._descriptor_layout.clone(), - gui_handler_create_info.font_path.clone(), + gui_handler_create_info.font.clone(), )?; let icon_descriptor_layout = DescriptorSetLayout::builder()