diff options
| author | Akihiko Odaki | 2021-02-20 02:31:38 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2021-03-03 08:47:42 +0100 |
| commit | 1e8b6f2b4989d3d2567befa00cd9c4430190f433 (patch) | |
| tree | 9844574c0cd20b1f3048c4a36daf34b058ee4e59 /include | |
| parent | Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-24022... (diff) | |
| download | qemu-1e8b6f2b4989d3d2567befa00cd9c4430190f433.tar.gz qemu-1e8b6f2b4989d3d2567befa00cd9c4430190f433.tar.xz qemu-1e8b6f2b4989d3d2567befa00cd9c4430190f433.zip | |
ui/cocoa: Remove the uses of full screen APIs
The detections of [NSView -enterFullScreen:] and
[NSView -exitFullScreen:] were wrong. A detection is coded as:
[NSView respondsToSelector:@selector(exitFullScreenModeWithOptions:)]
but it should be:
[NSView instancesRespondToSelector:@selector(exitFullScreenModeWithOptions:)]
Because of those APIs were not detected, ui/cocoa always falled
back to a borderless window whose frame matches the screen to
implement fullscreen behavior.
The code using [NSView -enterFullScreen:] and
[NSView -exitFullScreen:] will be used if you fix the detections,
but its behavior is undesirable; the full screen view stretches
the video, changing the aspect ratio, even if zooming is disabled.
This change removes the code as it does nothing good.
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210220013138.51437-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
