Implement ApplicationHandler::can_create|destroy_surfaces() (#3765)
This commit is contained in:
parent
a0d69c782a
commit
75ce71f05a
21 changed files with 178 additions and 114 deletions
|
|
@ -176,10 +176,10 @@ impl EventLoop {
|
|||
|
||||
match event {
|
||||
MainEvent::InitWindow { .. } => {
|
||||
app.resumed(self.window_target());
|
||||
app.can_create_surfaces(self.window_target());
|
||||
},
|
||||
MainEvent::TerminateWindow { .. } => {
|
||||
app.suspended(self.window_target());
|
||||
app.destroy_surfaces(self.window_target());
|
||||
},
|
||||
MainEvent::WindowResized { .. } => resized = true,
|
||||
MainEvent::RedrawNeeded { .. } => pending_redraw = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue