diff --git a/src/win32.rs b/src/win32.rs index 3b99bf7..6559e36 100644 --- a/src/win32.rs +++ b/src/win32.rs @@ -231,30 +231,7 @@ impl Win32Impl { /// Fetch the buffer from the window. pub fn fetch(&mut self) -> Result, SoftBufferError> { - let buffer = self.buffer.as_ref().unwrap(); - let temp_buffer = Buffer::new(self.dc, buffer.width, buffer.height); - - // Just go the other way. - unsafe { - Gdi::BitBlt( - temp_buffer.dc, - 0, - 0, - temp_buffer.width.get(), - temp_buffer.height.get(), - self.dc, - 0, - 0, - Gdi::SRCCOPY, - ); - } - - // Flush the operation so that it happens immediately. - unsafe { - Gdi::GdiFlush(); - } - - Ok(temp_buffer.pixels().to_vec()) + Err(SoftBufferError::Unimplemented) } }