Make arguments of Renderer::new explicit in iced_wgpu
This commit is contained in:
parent
f88488543f
commit
2c6fd9ac14
4 changed files with 17 additions and 17 deletions
|
|
@ -87,10 +87,14 @@ pub struct Renderer {
|
|||
}
|
||||
|
||||
impl Renderer {
|
||||
pub fn new(settings: Settings, _engine: &Engine) -> Self {
|
||||
pub fn new(
|
||||
_engine: &Engine,
|
||||
default_font: Font,
|
||||
default_text_size: Pixels,
|
||||
) -> Self {
|
||||
Self {
|
||||
default_font: settings.default_font,
|
||||
default_text_size: settings.default_text_size,
|
||||
default_font,
|
||||
default_text_size,
|
||||
layers: layer::Stack::new(),
|
||||
|
||||
triangle_storage: triangle::Storage::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue