mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Remove obsolete comment
This commit is contained in:
parent
aace1c0373
commit
158543f336
|
@ -342,6 +342,15 @@ impl Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Drop for Window {
|
||||||
|
#[inline]
|
||||||
|
fn drop(&mut self) {
|
||||||
|
unsafe {
|
||||||
|
user32::PostMessageW(self.window.0, winapi::WM_DESTROY, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub struct PollEventsIterator<'a> {
|
pub struct PollEventsIterator<'a> {
|
||||||
window: &'a Window,
|
window: &'a Window,
|
||||||
}
|
}
|
||||||
|
@ -367,14 +376,3 @@ impl<'a> Iterator for WaitEventsIterator<'a> {
|
||||||
self.window.events_receiver.recv().ok()
|
self.window.events_receiver.recv().ok()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for Window {
|
|
||||||
#[inline]
|
|
||||||
fn drop(&mut self) {
|
|
||||||
unsafe {
|
|
||||||
// we don't call MakeCurrent(0, 0) because we are not sure that the context
|
|
||||||
// is still the current one
|
|
||||||
user32::PostMessageW(self.window.0, winapi::WM_DESTROY, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue