Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DOCS/man/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3677,7 +3677,7 @@ Window
``--force-window-position``
Forcefully move mpv's video output window to default location whenever
there is a change in video parameters, video stream or file. This used to
be the default behavior. Currently only affects X11, macvk and SDL VOs.
be the default behavior. Currently only affects Windows, X11, macvk and SDL VOs.

``--auto-window-resize=<yes|no>``
By default, mpv will automatically resize itself if the video's size changes
Expand Down
2 changes: 1 addition & 1 deletion video/out/mac/common.swift
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class Common: NSObject {
y1: Int32(originY + rv.size.height))

var geo: vo_win_geometry = vo_win_geometry()
vo_calc_window_geometry(vo, &screenRC, &screenRC, Double(screen.backingScaleFactor), false, &geo)
vo_calc_window_geometry(vo, vo.pointee.opts, &screenRC, &screenRC, Double(screen.backingScaleFactor), false, &geo, nil)
vo_apply_window_geometry(vo, &geo)

let height = CGFloat(geo.win.y1 - geo.win.y0)
Expand Down
2 changes: 1 addition & 1 deletion video/out/vo_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
struct mp_rect screenrc;

update_screeninfo(vo, &screenrc);
vo_calc_window_geometry(vo, &screenrc, &screenrc, 1.0, false, &geo);
vo_calc_window_geometry(vo, vc->opts_cache->opts, &screenrc, &screenrc, 1.0, false, &geo, NULL);
vo_apply_window_geometry(vo, &geo);

int win_w = vo->dwidth;
Expand Down
Loading
Loading