summaryrefslogtreecommitdiffstats
path: root/glow/src/window
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-04-26 19:18:18 -0300
committerLibravatar Richard <richardsoncusto@gmail.com>2022-04-27 15:25:16 -0300
commit984d1f375ecec301dd42b049eecd1b88e3bca32a (patch)
treef918985683a1568f9c1a96b53580c384c3a7d5aa /glow/src/window
parent5be1ac18fe1757d31386f98774d823bd1137eea4 (diff)
downloadiced-984d1f375ecec301dd42b049eecd1b88e3bca32a.tar.gz
iced-984d1f375ecec301dd42b049eecd1b88e3bca32a.tar.bz2
iced-984d1f375ecec301dd42b049eecd1b88e3bca32a.zip
Move `compositor` module access from `window` to `crate`
Diffstat (limited to 'glow/src/window')
-rw-r--r--glow/src/window/compositor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/glow/src/window/compositor.rs b/glow/src/window/compositor.rs
index 402461bb..68d27d36 100644
--- a/glow/src/window/compositor.rs
+++ b/glow/src/window/compositor.rs
@@ -2,7 +2,7 @@ use crate::{Backend, Color, Error, Renderer, Settings, Viewport};
use core::ffi::c_void;
use glow::HasContext;
-use iced_graphics::{Antialiasing, Size};
+use iced_graphics::{compositor, Antialiasing, Size};
/// A window graphics backend for iced powered by `glow`.
#[allow(missing_debug_implementations)]
@@ -67,10 +67,10 @@ impl iced_graphics::window::GLCompositor for Compositor {
}
}
- fn get_information(&self) -> iced_graphics::window::Information {
+ fn get_information(&self) -> compositor::Information {
let adapter = unsafe { self.gl.get_parameter_string(glow::RENDERER) };
- iced_graphics::window::Information {
+ compositor::Information {
backend: format!("{:?}", self.gl.version()),
adapter,
}