Commit 654d89e8 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx vout: fix behaviour when macosx-video-autoresize is false

Should be now the same as it would be in fullscreen.
(cherry picked from commit 0d6fe822a85332701ab5052e5a460fd37b5ee9cd)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 55187d6f
......@@ -395,6 +395,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
if (cfg_tmp.display.height < windowMinSize.height)
cfg_tmp.display.height = windowMinSize.height;
NSRect bounds = [sys->glView bounds];
if (!config_GetInt(vd, "macosx-video-autoresize"))
{
cfg_tmp.display.width = bounds.size.width;
cfg_tmp.display.height = bounds.size.height;
}
vout_display_PlacePicture (&place, source, &cfg_tmp, false);
vd->fmt.i_width = vd->source.i_width * place.width / vd->source.i_visible_width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment