Skip to content

Commit

Permalink
examples: glium_gl_area: Implement new Backend::resize()
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Nov 19, 2023
1 parent b5faf5f commit 14bd6f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/glium_gl_area/glium_gl_area/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ unsafe impl glium::backend::Backend for GliumGLArea {
unsafe fn make_current(&self) {
GLAreaExt::make_current(self);
}

fn resize(&self, size: (u32, u32)) {
self.set_size_request(size.0 as i32, size.1 as i32);
}
}

0 comments on commit 14bd6f0

Please sign in to comment.