Rename variable to avoid confusion

This commit is contained in:
Drakulix 2017-05-23 11:03:03 +02:00
parent 94d6a0f987
commit dbaf4f7746
1 changed files with 2 additions and 2 deletions

View File

@ -489,8 +489,8 @@ impl InputBackend for WinitInputBackend {
match event {
WindowEvent::Resized(x, y) => {
window.set_inner_size(x, y);
if let Some(wl_surface) = surface.as_ref() {
wl_surface.resize(x as i32, y as i32, 0, 0);
if let Some(wl_egl_surface) = surface.as_ref() {
wl_egl_surface.resize(x as i32, y as i32, 0, 0);
}
}
WindowEvent::KeyboardInput(state, key_code, _, _) => {