mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
Fixed wrong variable binding for WindowAttributes on asserts
This commit is contained in:
parent
9a05577df8
commit
2be3c142f0
|
@ -258,8 +258,8 @@ impl Window {
|
||||||
use self::wayland::internals::FFI;
|
use self::wayland::internals::FFI;
|
||||||
|
|
||||||
// not implemented
|
// not implemented
|
||||||
assert!(win_attribs.min_dimensions.is_none());
|
assert!(window.min_dimensions.is_none());
|
||||||
assert!(win_attribs.max_dimensions.is_none());
|
assert!(window.max_dimensions.is_none());
|
||||||
|
|
||||||
let wayland_context = match *WAYLAND_CONTEXT {
|
let wayland_context = match *WAYLAND_CONTEXT {
|
||||||
Some(ref c) => c,
|
Some(ref c) => c,
|
||||||
|
|
|
@ -305,8 +305,8 @@ impl Window {
|
||||||
let dimensions = window_attrs.dimensions.unwrap_or((800, 600));
|
let dimensions = window_attrs.dimensions.unwrap_or((800, 600));
|
||||||
|
|
||||||
// not implemented
|
// not implemented
|
||||||
assert!(win_attribs.min_dimensions.is_none());
|
assert!(window_attrs.min_dimensions.is_none());
|
||||||
assert!(win_attribs.max_dimensions.is_none());
|
assert!(window_attrs.max_dimensions.is_none());
|
||||||
|
|
||||||
let screen_id = match window_attrs.monitor {
|
let screen_id = match window_attrs.monitor {
|
||||||
Some(PlatformMonitorId::X(MonitorId(_, monitor))) => monitor as i32,
|
Some(PlatformMonitorId::X(MonitorId(_, monitor))) => monitor as i32,
|
||||||
|
|
Loading…
Reference in a new issue