1
mirror of https://github.com/mpv-player/mpv synced 2025-04-23 12:59:51 +02:00

cocoa_common: fix native-fs state saving

`opts->fs = VO_FALSE` was forgotten
This commit is contained in:
Stefano Pigozzi 2013-05-30 10:37:09 +02:00
parent a31422bbfe
commit 0aac8bc5ad

@ -652,12 +652,13 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
if (opts->native_fs) { if (opts->native_fs) {
if (!opts->fs) { if (!opts->fs) {
opts->fs = VO_TRUE;
vo_cocoa_set_cursor_visibility(false); vo_cocoa_set_cursor_visibility(false);
[self setContentResizeIncrements:NSMakeSize(1, 1)]; [self setContentResizeIncrements:NSMakeSize(1, 1)];
opts->fs = VO_TRUE;
} else { } else {
vo_cocoa_set_cursor_visibility(true); vo_cocoa_set_cursor_visibility(true);
[self setContentAspectRatio:s->current_video_size]; [self setContentAspectRatio:s->current_video_size];
opts->fs = VO_FALSE;
} }
[self toggleFullScreen:nil]; [self toggleFullScreen:nil];