better support for win7

This commit is contained in:
rustdesk
2021-05-17 20:46:02 +08:00
parent 7630713534
commit f760e56f79
5 changed files with 101 additions and 28 deletions

View File

@@ -13,6 +13,7 @@ use winapi::{
BITMAPINFO,
BITMAPINFOHEADER,
BI_RGB,
CAPTUREBLT,
DIB_RGB_COLORS, //CAPTUREBLT,
HGDI_ERROR,
RGBQUAD,
@@ -97,7 +98,7 @@ impl CapturerGDI {
self.screen_dc,
0,
0,
SRCCOPY, // | CAPTUREBLT, // CAPTUREBLT enable layered window but also make cursor blinking
SRCCOPY | CAPTUREBLT, // CAPTUREBLT enable layered window but also make cursor blinking
);
if res == 0 {
return Err("Failed to copy screen to Windows buffer".into());