cocoa: try to fix sizing bugs on retina displays

untested, no hardware.
This commit is contained in:
Stefano Pigozzi 2014-10-06 09:58:22 +02:00
parent ba994bc0dd
commit f440c0626e
1 changed files with 2 additions and 2 deletions

View File

@ -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];