From f440c0626e9159945cc8974f0a7b0ea46d1c8510 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 6 Oct 2014 09:58:22 +0200 Subject: [PATCH] cocoa: try to fix sizing bugs on retina displays untested, no hardware. --- video/out/cocoa_common.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 0a58cd85b8..0dab97826c 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -310,8 +310,6 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags) } s->view = [[[MpvEventsView alloc] initWithFrame:contentRect] autorelease]; - [s->view setWantsBestResolutionOpenGLSurface:YES]; - #if HAVE_COCOA_APPLICATION cocoa_register_menu_item_action(MPM_H_SIZE, @selector(halfSize)); cocoa_register_menu_item_action(MPM_N_SIZE, @selector(normalSize)); @@ -321,6 +319,8 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags) #endif s->video = [[MpvVideoView alloc] initWithFrame:[s->view bounds]]; + [s->video setWantsBestResolutionOpenGLSurface:YES]; + [s->view addSubview:s->video]; [s->view setAutoresizesSubviews:YES]; [s->window setContentView:s->view];