From 2be3c142f0778a3588982572a997dc669adca2a6 Mon Sep 17 00:00:00 2001 From: Aceeri Date: Mon, 9 Nov 2015 03:29:26 -0800 Subject: Fixed wrong variable binding for WindowAttributes on asserts --- src/api/wayland/mod.rs | 4 ++-- src/api/x11/window.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index 8084516..ab71ffa 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -258,8 +258,8 @@ impl Window { use self::wayland::internals::FFI; // not implemented - assert!(win_attribs.min_dimensions.is_none()); - assert!(win_attribs.max_dimensions.is_none()); + assert!(window.min_dimensions.is_none()); + assert!(window.max_dimensions.is_none()); let wayland_context = match *WAYLAND_CONTEXT { Some(ref c) => c, diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 4d2dfb2..09470ff 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -305,8 +305,8 @@ impl Window { let dimensions = window_attrs.dimensions.unwrap_or((800, 600)); // not implemented - assert!(win_attribs.min_dimensions.is_none()); - assert!(win_attribs.max_dimensions.is_none()); + assert!(window_attrs.min_dimensions.is_none()); + assert!(window_attrs.max_dimensions.is_none()); let screen_id = match window_attrs.monitor { Some(PlatformMonitorId::X(MonitorId(_, monitor))) => monitor as i32, -- cgit v1.2.3