diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-07-15 21:33:19 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-07-15 21:33:19 +0200 |
commit | 135ba132a84a4fdc48b186c75f724c03cc310efb (patch) | |
tree | 643484fa479c1846a4496d58a0f4a964728797b5 | |
parent | f5449870e073c8f5fe6f2798aaf679068a60e343 (diff) | |
download | mpv-135ba132a84a4fdc48b186c75f724c03cc310efb.tar.bz2 mpv-135ba132a84a4fdc48b186c75f724c03cc310efb.tar.xz |
cocoa: fix regression preventing window resize
I introduced this bug in b5bbb49. Sorry!
This could fix #943 and #930 even though I can't reproduce those specific bugs.
-rw-r--r-- | video/out/cocoa_common.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 2a699b8d51..4009f6cb26 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -424,8 +424,10 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx) s->old_dwidth = width; s->old_dheight = height; - if (!(flags & VOFLAG_HIDDEN) && !s->window) { + if (!(flags & VOFLAG_HIDDEN) && !s->window) create_window(vo, &geo.win, geo.flags); + + if (s->window) { if (reset_size) [s->window queueNewVideoSize:NSMakeSize(width, height)]; cocoa_set_window_title(vo, vo_get_window_title(vo)); |