@@ -98,7 +98,7 @@ static LRESULT CALLBACK ParentWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM
9898 pThis->OnDisplayModeChange (true );
9999 break ;
100100 case WM_MOVE:
101- if (pThis->m_bIsFullscreen ) {
101+ if (pThis->m_bExclusiveScreen ) {
102102 // I don't know why, but without this, the filter freezes when switching from fullscreen to window in DX9 mode.
103103 SetWindowLongPtrW (hWnd, GWLP_WNDPROC, (LONG_PTR)pfnOldProc);
104104 SetWindowLongPtrW (hWnd, GWLP_WNDPROC, (LONG_PTR)ParentWndProc);
@@ -107,19 +107,19 @@ static LRESULT CALLBACK ParentWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM
107107 }
108108 break ;
109109 case WM_NCACTIVATE:
110- if (!wParam && pThis->m_bIsFullscreen && !pThis->m_bIsD3DFullscreen ) {
110+ if (!wParam && pThis->m_bExclusiveScreen && !pThis->m_bIsD3DFullscreen ) {
111111 return 0 ;
112112 }
113113 break ;
114114 case WM_RBUTTONUP:
115- if (pThis->m_bIsFullscreen ) {
115+ if (pThis->m_bExclusiveScreen ) {
116116 // block context menu in exclusive fullscreen
117117 return 0 ;
118118 }
119119 break ;
120120/*
121121 case WM_SYSCOMMAND:
122- if (pThis->m_bIsFullscreen && wParam == SC_MINIMIZE) {
122+ if (pThis->m_bExclusiveScreen && wParam == SC_MINIMIZE) {
123123 // block minimize in exclusive fullscreen
124124 return 0;
125125 }
@@ -302,7 +302,7 @@ CMpcVideoRenderer::~CMpcVideoRenderer()
302302 RemoveParentWndProc (m_hWndParentMain);
303303 }
304304
305- if (m_bIsFullscreen && !m_bIsD3DFullscreen && m_hWndParentMain) {
305+ if (m_bExclusiveScreen && !m_bIsD3DFullscreen && m_hWndParentMain) {
306306 PostMessageW (m_hWndParentMain, WM_SWITCH_FULLSCREEN, 0 , 0 );
307307 }
308308
@@ -596,7 +596,7 @@ void CMpcVideoRenderer::UpdateDisplayInfo()
596596 m_bPrimaryDisplay = false ;
597597 }
598598
599- m_VideoProcessor->SetDisplayInfo (m_DisplayConfig, m_bPrimaryDisplay, m_bIsFullscreen );
599+ m_VideoProcessor->SetDisplayInfo (m_DisplayConfig, m_bPrimaryDisplay, m_bExclusiveScreen );
600600}
601601
602602void CMpcVideoRenderer::OnDisplayModeChange (const bool bReset/* = false*/ )
@@ -964,7 +964,7 @@ STDMETHODIMP CMpcVideoRenderer::GetPreferredAspectRatio(long *plAspectX, long *p
964964void CMpcVideoRenderer::SwitchFullScreen ()
965965{
966966 DLog (L" CMpcVideoRenderer::SwitchFullScreen() : Switch to fullscreen" );
967- m_bIsFullscreen = true ;
967+ m_bExclusiveScreen = true ;
968968
969969 if (m_hWnd) {
970970 Init (m_VideoProcessor->Type () == VP_DX9 ? false : true );
@@ -1059,7 +1059,7 @@ HRESULT CMpcVideoRenderer::Init(const bool bCreateWindow/* = false*/)
10591059 }
10601060 }
10611061
1062- m_hWnd = m_bIsFullscreen && m_VideoProcessor->Type () == VP_DX9 ? m_hWndParentMain : m_hWndWindow;
1062+ m_hWnd = m_bExclusiveScreen && m_VideoProcessor->Type () == VP_DX9 ? m_hWndParentMain : m_hWndWindow;
10631063 if (m_bIsD3DFullscreen) {
10641064 m_hWnd = m_hWndParent;
10651065 }
@@ -1122,17 +1122,17 @@ STDMETHODIMP CMpcVideoRenderer::SetWindowPosition(long Left, long Top, long Widt
11221122
11231123 CAutoLock cRendererLock (&m_RendererLock);
11241124
1125- if (!m_bIsD3DFullscreen && (m_Sets.bExclusiveFS || m_bIsFullscreen )) {
1125+ if (!m_bIsD3DFullscreen && (m_Sets.bExclusiveFS || m_bExclusiveScreen )) {
11261126 const HMONITOR hMon = MonitorFromWindow (m_hWnd, MONITOR_DEFAULTTONEAREST);
11271127 MONITORINFO mi = { mi.cbSize = sizeof (mi) };
11281128 ::GetMonitorInfoW (hMon, &mi);
11291129 const CRect rcMonitor (mi.rcMonitor );
11301130
1131- if (!m_bIsFullscreen && m_windowRect.Width () == rcMonitor.Width () && m_windowRect.Height () == rcMonitor.Height ()) {
1131+ if (!m_bExclusiveScreen && m_windowRect.Width () == rcMonitor.Width () && m_windowRect.Height () == rcMonitor.Height ()) {
11321132 SwitchFullScreen ();
1133- } else if (m_bIsFullscreen && (m_windowRect.Width () != rcMonitor.Width () || m_windowRect.Height () != rcMonitor.Height ())) {
1133+ } else if (m_bExclusiveScreen && (m_windowRect.Width () != rcMonitor.Width () || m_windowRect.Height () != rcMonitor.Height ())) {
11341134 DLog (L" CMpcVideoRenderer::SetWindowPosition() : Switch from fullscreen" );
1135- m_bIsFullscreen = false ;
1135+ m_bExclusiveScreen = false ;
11361136
11371137 if (m_hWnd) {
11381138 Init (m_VideoProcessor->Type () == VP_DX9 ? false : true );
@@ -1145,7 +1145,7 @@ STDMETHODIMP CMpcVideoRenderer::SetWindowPosition(long Left, long Top, long Widt
11451145 }
11461146 }
11471147
1148- if (m_hWndWindow && !m_bIsFullscreen ) {
1148+ if (m_hWndWindow && !m_bExclusiveScreen ) {
11491149 SetWindowPos (m_hWndWindow, nullptr , Left, Top, Width, Height, SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW);
11501150 if (Left < 0 ) {
11511151 m_windowRect.OffsetRect (-Left, 0 );
@@ -1509,7 +1509,7 @@ STDMETHODIMP CMpcVideoRenderer::Flt_SetBin(LPCSTR field, LPVOID value, int size)
15091509
15101510STDMETHODIMP CMpcVideoRenderer::SetD3DFullscreen (bool bEnabled)
15111511{
1512- m_bIsFullscreen = m_bIsD3DFullscreen = bEnabled;
1512+ m_bExclusiveScreen = m_bIsD3DFullscreen = bEnabled;
15131513 return S_OK;
15141514}
15151515
@@ -1742,7 +1742,7 @@ void CMpcVideoRenderer::DoAfterChangingDevice()
17421742
17431743LRESULT CMpcVideoRenderer::OnReceiveMessage (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
17441744{
1745- if (m_hWndDrain && !InSendMessage () && !m_bIsFullscreen ) {
1745+ if (m_hWndDrain && !InSendMessage () && !m_bExclusiveScreen ) {
17461746 switch (uMsg) {
17471747 case WM_CHAR:
17481748 case WM_DEADCHAR:
0 commit comments