1
The detections of full screen APIs were wrong. A detection is coded as:
1
The detections of [NSView -enterFullScreen:] and
2
[NSView -exitFullScreen:] were wrong. A detection is coded as:
2
[NSView respondsToSelector:@selector(exitFullScreenModeWithOptions:)]
3
[NSView respondsToSelector:@selector(exitFullScreenModeWithOptions:)]
3
but it should be:
4
but it should be:
4
[NSView instancesRespondToSelector:@selector(exitFullScreenModeWithOptions:)]
5
[NSView instancesRespondToSelector:@selector(exitFullScreenModeWithOptions:)]
5
6
6
The uses of full screen APIs were also incorrect, and if you fix the
7
Because of those APIs were not detected, ui/cocoa always falled
7
detections, the full screen view stretches the video, changing the
8
back to a borderless window whose frame matches the screen to
8
aspect ratio, even if zooming is disabled.
9
implement fullscreen behavior.
9
10
10
Remove the code as it does nothing good.
11
The code using [NSView -enterFullScreen:] and
12
[NSView -exitFullScreen:] will be used if you fix the detections,
13
but its behavior is undesirable; the full screen view stretches
14
the video, changing the aspect ratio, even if zooming is disabled.
15
16
This change removes the code as it does nothing good.
11
17
12
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
18
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
13
---
19
---
14
ui/cocoa.m | 41 +++++++++++++++--------------------------
20
ui/cocoa.m | 41 +++++++++++++++--------------------------
15
1 file changed, 15 insertions(+), 26 deletions(-)
21
1 file changed, 15 insertions(+), 26 deletions(-)
...
...
diff view generated by jsdifflib