diff options
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/cocoa/mod.rs | 2 | ||||
-rw-r--r-- | src/api/wgl/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 6fc91b4..5ea57ae 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -603,7 +603,7 @@ impl Window { Err(CreationError::NotSupported) } } else { - Err(CreationError::NotSupported) + Err(CreationError::NoAvailablePixelFormat) } } } diff --git a/src/api/wgl/mod.rs b/src/api/wgl/mod.rs index 54a9a9a..89538f1 100644 --- a/src/api/wgl/mod.rs +++ b/src/api/wgl/mod.rs @@ -573,5 +573,5 @@ fn choose_dummy_pixel_format<I>(iter: I) -> Result<libc::c_int, CreationError> } } - backup_id.ok_or(CreationError::NotSupported) + backup_id.ok_or(CreationError::OsError("No available pixel format".to_string())) } |