forked from servo/surfman
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
If a user builds with the sm-winit
feature on UWP, there's a compile error caused by
surfman/surfman/src/platform/windows/angle/surface.rs
Lines 116 to 118 in fb78226
/// A placeholder native widget type for UWP, which isn't supported at the moment. | |
#[cfg(target_vendor = "uwp")] | |
pub struct NativeWidget; |
surfman/surfman/src/platform/windows/angle/connection.rs
Lines 117 to 127 in fb78226
#[cfg(feature = "sm-winit")] | |
#[inline] | |
pub fn create_native_widget_from_winit_window(&self, window: &Window) | |
-> Result<NativeWidget, Error> { | |
let hwnd = window.get_hwnd() as HWND; | |
if hwnd.is_null() { | |
Err(Error::IncompatibleNativeWidget) | |
} else { | |
Ok(NativeWidget { window_handle: hwnd }) | |
} | |
} |
Metadata
Metadata
Assignees
Labels
No labels