damn, rust borrow checker got hands
This commit is contained in:
parent
5a88e1c4c2
commit
1c75b7ac87
4 changed files with 16 additions and 19 deletions
|
|
@ -38,7 +38,8 @@ impl GLFWWindow {
|
|||
}
|
||||
|
||||
|
||||
pub fn handle_window_event(_window: &mut glfw::Window, event: glfw::WindowEvent) {
|
||||
pub fn handle_window_event(&self, event: glfw::WindowEvent) {
|
||||
|
||||
match event {
|
||||
glfw::WindowEvent::Close => {
|
||||
WindowCloseEvent::emit();
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@ impl WindowConfig {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn default_visibility() -> bool {
|
||||
true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue