From f9d4aa4deaefcab197d764c8306367603e357f13 Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Thu, 27 Apr 2017 16:43:41 +0200 Subject: [PATCH] Add missing `CGDisplayCreateImage()` function. --- src/display.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display.rs b/src/display.rs index 5328737..e398730 100644 --- a/src/display.rs +++ b/src/display.rs @@ -76,6 +76,7 @@ extern { pub fn CGDisplayPixelsHigh(display: CGDirectDisplayID) -> libc::size_t; pub fn CGDisplayPixelsWide(display: CGDirectDisplayID) -> libc::size_t; pub fn CGDisplayBounds(display: CGDirectDisplayID) -> CGRect; + pub fn CGDisplayCreateImage(display: CGDirectDisplayID) -> CGImageRef; // mouse stuff pub fn CGDisplayHideCursor(display: CGDirectDisplayID) -> CGError;