mirror of https://github.com/mpv-player/mpv
mac: remove unnecessary window size change check
this is already done in the updateSize method of the window. also fixes an issue where the size wasn't properly changed, even though the new and old size were different. the unfsContentFrame should have been checked instead of the pixel representation of the same frame.
This commit is contained in:
parent
c5324cc483
commit
7bd612ee66
|
@ -60,7 +60,7 @@ class MacCommon: Common {
|
|||
initWindowState()
|
||||
}
|
||||
|
||||
if (window?.unfsContentFramePixel.size ?? NSSize.zero) != wr.size && option.vo.auto_window_resize {
|
||||
if option.vo.auto_window_resize {
|
||||
window?.updateSize(wr.size)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue