diff options
| author | 2024-03-25 21:36:44 +0100 | |
|---|---|---|
| committer | 2024-03-25 21:36:44 +0100 | |
| commit | a2a8381a49ac2dd1cd65eb382b9ee02bbfa17286 (patch) | |
| tree | e6c24928a42e23ff91eea0fc30b4fbbcb6da024b /winit/src/application | |
| parent | 3013463baa71504488a20436beb3db87ecb66df0 (diff) | |
| parent | 6a4f5ac2081699f7cf20c917b367366ab49eeef1 (diff) | |
| download | iced-a2a8381a49ac2dd1cd65eb382b9ee02bbfa17286.tar.gz iced-a2a8381a49ac2dd1cd65eb382b9ee02bbfa17286.tar.bz2 iced-a2a8381a49ac2dd1cd65eb382b9ee02bbfa17286.zip | |
Merge pull request #2351 from iced-rs/custom-renderer-injection
Type-Driven Renderer Fallback
Diffstat (limited to '')
| -rw-r--r-- | winit/src/application.rs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/winit/src/application.rs b/winit/src/application.rs index 13d9282d..d68523fa 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -13,6 +13,7 @@ use crate::core::window;  use crate::core::{Color, Event, Point, Size, Theme};  use crate::futures::futures;  use crate::futures::{Executor, Runtime, Subscription}; +use crate::graphics;  use crate::graphics::compositor::{self, Compositor};  use crate::runtime::clipboard;  use crate::runtime::program::Program; @@ -130,7 +131,7 @@ pub fn default(theme: &Theme) -> Appearance {  /// settings.  pub async fn run<A, E, C>(      settings: Settings<A::Flags>, -    compositor_settings: C::Settings, +    graphics_settings: graphics::Settings,  ) -> Result<(), Error>  where      A: Application + 'static, @@ -219,7 +220,7 @@ where          };      } -    let compositor = C::new(compositor_settings, window.clone()).await?; +    let compositor = C::new(graphics_settings, window.clone()).await?;      let mut renderer = compositor.create_renderer();      for font in settings.fonts { | 
