--- video/out/cocoa/video_view.m.orig
+++ video/out/cocoa/video_view.m
@@ -15,6 +15,8 @@
  * with mpv.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#import <AvailabilityMacros.h>
+
 #include "osdep/macosx_compat.h"
 #include "video/out/cocoa_common.h"
 #include "video_view.h"
@@ -38,7 +40,18 @@
 
 - (NSRect)frameInPixels
 {
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
     return [self convertRectToBacking:[self frame]];
+#else
+    NSRect cur_frame = self.frame;
+    NSPoint frame_point = cur_frame.origin;
+    NSSize frame_extents = cur_frame.size;
+    CGFloat scale_factor = [self.window userSpaceScaleFactor];
+    NSPoint conv_frame_point = NSMakePoint (frame_point.x * scale_factor, frame_point.y * scale_factor);
+    NSSize conv_frame_extents = NSMakeSize (frame_extents.width * scale_factor, frame_extents.height * scale_factor);
+    NSRect conv_frame = NSMakeRect (conv_frame_point.x, conv_frame_point.y, conv_frame_extents.width, conv_frame_extents.height);
+    return conv_frame;
+#endif
 }
 
 
