Skip to content

Commit 14bd6f0

Browse files
committed
examples: glium_gl_area: Implement new Backend::resize()
1 parent b5faf5f commit 14bd6f0

File tree

1 file changed

+4
-0
lines changed
  • examples/glium_gl_area/glium_gl_area

1 file changed

+4
-0
lines changed

examples/glium_gl_area/glium_gl_area/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ unsafe impl glium::backend::Backend for GliumGLArea {
4242
unsafe fn make_current(&self) {
4343
GLAreaExt::make_current(self);
4444
}
45+
46+
fn resize(&self, size: (u32, u32)) {
47+
self.set_size_request(size.0 as i32, size.1 as i32);
48+
}
4549
}

0 commit comments

Comments
 (0)