mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
parent
1c0920a8dd
commit
586c9e7155
@ -1478,6 +1478,10 @@ Window
|
||||
|
||||
See also ``--screen``.
|
||||
|
||||
``--fs-black-out-screens``
|
||||
|
||||
OS X only. Black out other displays when going fullscreen.
|
||||
|
||||
``--keep-open``
|
||||
Do not terminate when playing or seeking beyond the end of the file, and
|
||||
there is not next file to be played (and ``--loop`` is not used).
|
||||
|
@ -455,6 +455,7 @@ const m_option_t mp_opts[] = {
|
||||
OPT_CHOICE_OR_INT("fs-screen", vo.fsscreen_id, 0, 0, 32,
|
||||
({"all", -2}, {"current", -1})),
|
||||
|
||||
OPT_FLAG("fs-black-out-screens", vo.fs_black_out_screens, 0),
|
||||
OPT_INTRANGE("brightness", gamma_brightness, 0, -100, 100),
|
||||
OPT_INTRANGE("saturation", gamma_saturation, 0, -100, 100),
|
||||
OPT_INTRANGE("contrast", gamma_contrast, 0, -100, 100),
|
||||
|
@ -12,6 +12,7 @@ typedef struct mp_vo_opts {
|
||||
int fullscreen;
|
||||
int screen_id;
|
||||
int fsscreen_id;
|
||||
int fs_black_out_screens;
|
||||
char *winname;
|
||||
int x11_netwm;
|
||||
int native_keyrepeat;
|
||||
|
@ -67,7 +67,7 @@
|
||||
popts |= NSApplicationPresentationAutoHideDock;
|
||||
|
||||
NSDictionary *fsopts = @{
|
||||
NSFullScreenModeAllScreens : @NO,
|
||||
NSFullScreenModeAllScreens : @([self.adapter fsModeAllScreens]),
|
||||
NSFullScreenModeApplicationPresentationOptions : @(popts)
|
||||
};
|
||||
|
||||
|
@ -33,5 +33,6 @@
|
||||
- (BOOL)keyboardEnabled;
|
||||
- (BOOL)mouseEnabled;
|
||||
- (NSScreen *)fsScreen;
|
||||
- (BOOL)fsModeAllScreens;
|
||||
@property(nonatomic, assign) struct vo *vout;
|
||||
@end
|
||||
|
@ -795,6 +795,11 @@ void *vo_cocoa_cgl_pixel_format(struct vo *vo)
|
||||
return s->fs_screen;
|
||||
}
|
||||
|
||||
- (BOOL)fsModeAllScreens
|
||||
{
|
||||
return self.vout->opts->fs_black_out_screens;
|
||||
}
|
||||
|
||||
- (void)handleFilesArray:(NSArray *)files
|
||||
{
|
||||
[[EventsResponder sharedInstance] handleFilesArray:files];
|
||||
|
Loading…
Reference in New Issue
Block a user