diff --git a/Cargo.toml b/Cargo.toml index f817721..a733bed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ core-graphics = "0.22" [target.'cfg(target_os = "windows")'.dependencies] fxhash = "0.2" widestring = "1.0" -windows = { version = "0.48", features = [ +windows = { version = "0.51.1", features = [ "Win32_Foundation", "Win32_Graphics_Gdi", ] } diff --git a/src/win32.rs b/src/win32.rs index c1793d6..5b1fff3 100644 --- a/src/win32.rs +++ b/src/win32.rs @@ -10,7 +10,7 @@ use windows::{ Win32::{ Foundation::{BOOL, LPARAM, RECT}, Graphics::Gdi::{ - CreateCompatibleBitmap, CreateCompatibleDC, CreateDCW, CreatedHDC, DeleteDC, + CreateCompatibleBitmap, CreateCompatibleDC, CreateDCW, DeleteDC, DeleteObject, EnumDisplayMonitors, GetDIBits, GetMonitorInfoW, GetObjectW, SelectObject, SetStretchBltMode, StretchBlt, BITMAP, BITMAPINFO, BITMAPINFOHEADER, DIB_RGB_COLORS, HBITMAP, HDC, HMONITOR, MONITORINFOEXW, RGBQUAD, SRCCOPY, @@ -106,7 +106,7 @@ fn capture(display_id: u32, x: i32, y: i32, width: i32, height: i32) -> Result Result