diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-07 22:30:57 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-07 22:30:57 +0400 |
commit | c9fdac8d20ffe1e82c9707ee1cc6e4478c0b1e33 (patch) | |
tree | ab6b3ff652d5e421f5bde42c16c2bea275fe90b6 /src/apps/mplayerc/RealMediaGraph.cpp | |
parent | 1948d33f7ce8f23bf7ce24048b1a8fa9b57eb7cc (diff) |
Video renderer's moved to static library
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/videorenderslib@1859 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/RealMediaGraph.cpp')
-rw-r--r-- | src/apps/mplayerc/RealMediaGraph.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/apps/mplayerc/RealMediaGraph.cpp b/src/apps/mplayerc/RealMediaGraph.cpp index ce4e1f7a4..355fc35b8 100644 --- a/src/apps/mplayerc/RealMediaGraph.cpp +++ b/src/apps/mplayerc/RealMediaGraph.cpp @@ -23,6 +23,7 @@ #include "stdafx.h"
#include "mplayerc.h"
+#include "MainFrm.h"
#include <math.h>
#include <atlbase.h>
#include <atlcoll.h>
@@ -508,6 +509,7 @@ CRealMediaPlayerWindowless::CRealMediaPlayerWindowless(HWND hWndParent, CRealMed {
AppSettings& s = AfxGetAppSettings();
+ bool bFullscreen = (AfxGetApp()->m_pMainWnd != NULL) && (((CMainFrame*)AfxGetApp()->m_pMainWnd)->IsD3DFullScreenMode());
switch(s.iRMVideoRendererType)
{
default:
@@ -516,7 +518,7 @@ CRealMediaPlayerWindowless::CRealMediaPlayerWindowless(HWND hWndParent, CRealMed return;
break;
case VIDRNDT_RM_DX9:
- if(FAILED(CreateAP9(CLSID_RM9AllocatorPresenter, hWndParent, &m_pRMAP)))
+ if(FAILED(CreateAP9(CLSID_RM9AllocatorPresenter, hWndParent, bFullscreen, &m_pRMAP)))
return;
break;
}
|