Skip to content

Commit

Permalink
Переделка commit fa2cbf8. Всегда показываем видео и обложку альбома, …
Browse files Browse the repository at this point in the history
…если ее показ задан в настройках.
  • Loading branch information
v0lt committed Mar 31, 2024
1 parent cd05070 commit 9230cba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/apps/mplayerc/MainFrm.cpp
Expand Up @@ -1661,7 +1661,14 @@ void CMainFrame::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
const BOOL bMenuVisible = IsMainMenuVisible();

// minimum video area size 32 x 32
lpMMI->ptMinTrackSize = { 32, (m_bAudioOnly && AfxGetAppSettings().nAudioWindowMode == 2) ? 0 : 32 };
lpMMI->ptMinTrackSize.x = 32;
if (m_eMediaLoadState == MLS_LOADED && (!m_bAudioOnly || AfxGetAppSettings().nAudioWindowMode == 1)) {
// always show a video and album cover if its display is set in the settings
lpMMI->ptMinTrackSize.y = 32;
} else {
lpMMI->ptMinTrackSize.x = 0;
}

CSize cSize;
CalcControlsSize(cSize);
lpMMI->ptMinTrackSize.x += cSize.cx;
Expand Down

0 comments on commit 9230cba

Please sign in to comment.