using local variable instead of a function call.

the data of `frame_size` is already storage into `new_frame_size`
This commit is contained in:
石博文 2017-12-21 21:20:12 +08:00
parent df0f9ad7ae
commit 248edaaf26
No known key found for this signature in database
GPG key ID: FC9610D6400A173C

View file

@ -674,7 +674,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
return;
}
self.frame_size = self.window.framebuffer_size();
self.frame_size = new_frame_size;
self.window_rect = new_window_rect;
self.send_window_size(WindowSizeType::Resize);