1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

cocoa: macosx_application needs cocoa-application

This commit is contained in:
FRAU KOUJIRO 2014-04-15 19:52:24 -07:00 committed by Stefano Pigozzi
parent 022a43de8e
commit b8a431c892
3 changed files with 8 additions and 4 deletions

View File

@ -19,7 +19,6 @@
#include "input/keycodes.h"
#include "osdep/macosx_application.h"
#include "osdep/macosx_events.h"
#include "osdep/macosx_compat.h"

View File

@ -28,12 +28,15 @@
#import "video/out/cocoa/mpvadapter.h"
#include "osdep/macosx_compat.h"
#include "osdep/macosx_application.h"
#include "osdep/macosx_application_objc.h"
#include "osdep/macosx_events_objc.h"
#include "config.h"
#if HAVE_COCOA_APPLICATION
# include "osdep/macosx_application.h"
# include "osdep/macosx_application_objc.h"
#endif
#include "options/options.h"
#include "video/out/vo.h"
#include "win_state.h"
@ -298,11 +301,13 @@ static void create_window(struct vo *vo, struct mp_rect *win, int geo_flags)
[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));
cocoa_register_menu_item_action(MPM_D_SIZE, @selector(doubleSize));
cocoa_register_menu_item_action(MPM_MINIMIZE, @selector(performMiniaturize:));
cocoa_register_menu_item_action(MPM_ZOOM, @selector(performZoom:));
#endif
[s->window setRestorable:NO];
[s->window setContentView:s->view];

View File

@ -382,7 +382,7 @@ def build(ctx):
( "osdep/threads.c" ),
( "osdep/ar/HIDRemote.m", "cocoa" ),
( "osdep/macosx_application.m", "cocoa" ),
( "osdep/macosx_application.m", "cocoa-application" ),
( "osdep/macosx_events.m", "cocoa" ),
( "osdep/path-macosx.m", "cocoa" ),