Skip to content

Commit

Permalink
Исправлена работа опции "AudioWindowMode" для случая, когда надо скры…
Browse files Browse the repository at this point in the history
…вать видеообласть.
  • Loading branch information
v0lt committed Mar 7, 2024
1 parent 36f237d commit fa2cbf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/mplayerc/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,8 @@ void CMainFrame::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
{
const BOOL bMenuVisible = IsMainMenuVisible();

lpMMI->ptMinTrackSize = { 32, 32 }; // minimum video area size
// minimum video area size 32 x 32
lpMMI->ptMinTrackSize = { 32, (m_bAudioOnly && AfxGetAppSettings().nAudioWindowMode == 2) ? 0 : 32 };
CSize cSize;
CalcControlsSize(cSize);
lpMMI->ptMinTrackSize.x += cSize.cx;
Expand Down

0 comments on commit fa2cbf8

Please sign in to comment.