diff options
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 339c59327..27b9c3ad4 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -494,6 +494,7 @@ close_window_cb (gpointer data) /* Get notified about changes */ [[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(reshape) name: NSViewFrameDidChangeNotification object: self]; + [self setWantsBestResolutionOpenGLSurface:YES]; return self; } @@ -564,6 +565,9 @@ resize_cb (gpointer data) NSRect visibleRect = [self visibleRect]; struct resize *resize_data = g_new (struct resize, 1); + bounds = [self convertRectToBacking:bounds]; + visibleRect = [self convertRectToBacking:visibleRect]; + GST_DEBUG_OBJECT (window, "Window resized: bounds %lf %lf %lf %lf " "visibleRect %lf %lf %lf %lf", bounds.origin.x, bounds.origin.y, |