mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Not implemented asserts to prevent silent fails
This commit is contained in:
parent
c6ffedccbd
commit
9a05577df8
|
@ -120,6 +120,10 @@ impl Window {
|
|||
{
|
||||
use std::{mem, ptr};
|
||||
|
||||
// not implemented
|
||||
assert!(win_attribs.min_dimensions.is_none());
|
||||
assert!(win_attribs.max_dimensions.is_none());
|
||||
|
||||
let opengl = opengl.clone().map_sharing(|w| &w.context);
|
||||
|
||||
let native_window = unsafe { android_glue::get_native_window() };
|
||||
|
|
|
@ -268,6 +268,10 @@ impl Window {
|
|||
unimplemented!()
|
||||
}
|
||||
|
||||
// not implemented
|
||||
assert!(win_attribs.min_dimensions.is_none());
|
||||
assert!(win_attribs.max_dimensions.is_none());
|
||||
|
||||
match opengl.robustness {
|
||||
Robustness::RobustNoResetNotification | Robustness::RobustLoseContextOnReset => {
|
||||
return Err(CreationError::RobustnessNotSupported);
|
||||
|
|
|
@ -257,6 +257,10 @@ impl Window {
|
|||
{
|
||||
use self::wayland::internals::FFI;
|
||||
|
||||
// not implemented
|
||||
assert!(win_attribs.min_dimensions.is_none());
|
||||
assert!(win_attribs.max_dimensions.is_none());
|
||||
|
||||
let wayland_context = match *WAYLAND_CONTEXT {
|
||||
Some(ref c) => c,
|
||||
None => return Err(CreationError::NotSupported),
|
||||
|
|
|
@ -304,6 +304,10 @@ 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());
|
||||
|
||||
let screen_id = match window_attrs.monitor {
|
||||
Some(PlatformMonitorId::X(MonitorId(_, monitor))) => monitor as i32,
|
||||
_ => unsafe { (display.xlib.XDefaultScreen)(display.display) },
|
||||
|
|
Loading…
Reference in a new issue