mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-10 02:51:32 +11:00
Use to_vec in windows/update_with_buffer (#33)
This commit is contained in:
parent
a8e5215f55
commit
933d7662fb
|
@ -639,7 +639,7 @@ impl Window {
|
||||||
|
|
||||||
Self::generic_update(self, window);
|
Self::generic_update(self, window);
|
||||||
|
|
||||||
self.buffer = buffer.iter().cloned().collect();
|
self.buffer = buffer.to_vec();
|
||||||
unsafe {
|
unsafe {
|
||||||
user32::InvalidateRect(window, ptr::null_mut(), winapi::TRUE);
|
user32::InvalidateRect(window, ptr::null_mut(), winapi::TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue