clsid2 / mpc-hc

Media Player Classic
GNU General Public License v3.0
10.49k stars 480 forks source link

launch in fullscreen bug #2891

Closed clsid2 closed 23 hours ago

clsid2 commented 2 days ago

@adipose Regression due to recent changes.

Toolbar does not auto-hide. Video does not show until moving mouse down to toolbar and then away to make it hide.

adipose commented 2 days ago

D3D or regular FS? Second screen or same screen?

clsid2 commented 2 days ago

regular on main monitor. happens with all renderers.

adipose commented 1 day ago

Can't reproduce with MPC-VR. FS settings:

image

Edit, I see it was "launch in fs."

adipose commented 1 day ago

After testing again, I still couldn't reproduce, even with /fullscreen flag. MPC-VR was my VR.

clsid2 commented 1 day ago

FullScreenSeparateControls = True I haven't tested in debugger yet.

adipose commented 1 day ago

I found something, with EVR-CP and FSSC=True. What happened is the toolbar didn't show, and didn't show even when I moused over. Kind of the opposite of your description but buggy nonetheless.

adipose commented 1 day ago

https://github.com/clsid2/mpc-hc/commit/9090b3bddebfd27edab0f5b0c0e7e675159ebe9d

It seems related to this commit, which fixed the problem with /fullscreen not working at all when FSSC=True.

clsid2 commented 1 day ago

m_fStartInFullscreen is used when fullscreen in a separate window (dedicated fs window). So should be renamed to m_fStartInFullscreenSeparate or something similar.

https://github.com/clsid2/mpc-hc/commit/9090b3bddebfd27edab0f5b0c0e7e675159ebe9d needs to be adapted to check in FSSC branch if current monitor is same as fullscreen monitor. If same monitor then use ToggleFullscreen (like when FSSC disabled), and if different set m_fStartInFullscreen=true. I think that would do it.

adipose commented 1 day ago

https://github.com/clsid2/mpc-hc/pull/2892

Yes, I came to a similar conclusion. See if this patch works for you.

Problem was trying to launch FSSC when it wouldn't apply.

adipose commented 1 day ago

Rename would be a good idea, it does appear it refers to separate FS window only.