diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tour/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/tour/src/main.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml index 8cdce295..2c79cbf7 100644 --- a/examples/tour/Cargo.toml +++ b/examples/tour/Cargo.toml @@ -23,6 +23,7 @@ iced_native = { version = "0.1.0-alpha", path = "../../native" } # A personal `ggez` fork that introduces a `FontCache` type to measure text # efficiently and fixes HiDPI issues. ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" } +env_logger = "0.6" [target.'cfg(target_arch = "wasm32")'.dependencies] iced_web = { path = "../../web" } diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 72774d38..a34d3298 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -7,6 +7,8 @@ use ggez::graphics; use ggez::input::mouse; pub fn main() -> ggez::GameResult { + env_logger::init(); + let (context, event_loop) = { &mut ggez::ContextBuilder::new("iced", "ggez") .window_mode(ggez::conf::WindowMode { |