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:
Stefano Pigozzi 2014-07-15 21:33:19 +02:00
parent f5449870e0
commit 135ba132a8
1 changed files with 3 additions and 1 deletions

View File

@ -424,8 +424,10 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx)
s->old_dwidth = width; s->old_dwidth = width;
s->old_dheight = height; s->old_dheight = height;
if (!(flags & VOFLAG_HIDDEN) && !s->window) { if (!(flags & VOFLAG_HIDDEN) && !s->window)
create_window(vo, &geo.win, geo.flags); create_window(vo, &geo.win, geo.flags);
if (s->window) {
if (reset_size) if (reset_size)
[s->window queueNewVideoSize:NSMakeSize(width, height)]; [s->window queueNewVideoSize:NSMakeSize(width, height)];
cocoa_set_window_title(vo, vo_get_window_title(vo)); cocoa_set_window_title(vo, vo_get_window_title(vo));