diff --git a/src/backend/mac/window.rs b/src/backend/mac/window.rs index 5b8c7e89..f1902d36 100644 --- a/src/backend/mac/window.rs +++ b/src/backend/mac/window.rs @@ -1382,8 +1382,8 @@ impl WindowHandle { /// Get the `Scale` of the window. pub fn get_scale(&self) -> Result { - // TODO: Get actual Scale - Ok(Scale::new(1.0, 1.0)) + let scale_factor: CGFloat = unsafe { msg_send![*self.nsview.load(), backingScaleFactor] }; + Ok(Scale::new(scale_factor, scale_factor)) } }