mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 09:31:27 +03:00
linux x11 rgb565 capture (#8580)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -23,9 +23,10 @@ impl TraitCapturer for Capturer {
|
||||
fn frame<'a>(&'a mut self, _timeout: Duration) -> io::Result<Frame<'a>> {
|
||||
let width = self.width();
|
||||
let height = self.height();
|
||||
let pixfmt = self.0.display().pixfmt();
|
||||
Ok(Frame::PixelBuffer(PixelBuffer::new(
|
||||
self.0.frame()?,
|
||||
Pixfmt::BGRA,
|
||||
pixfmt,
|
||||
width,
|
||||
height,
|
||||
)))
|
||||
|
||||
Reference in New Issue
Block a user