mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
f5449870e0
commit
135ba132a8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue