From 077d2bcc9ac213c1ad14aa194d6e6e333f514e77 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sun, 23 Dec 2007 21:15:34 +0000 Subject: [PATCH] grayed out D3D menu options when compiling with NO_D3D git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@226 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/MainWndOptions.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/win32/MainWndOptions.cpp b/src/win32/MainWndOptions.cpp index c120ce3c..431e47d4 100644 --- a/src/win32/MainWndOptions.cpp +++ b/src/win32/MainWndOptions.cpp @@ -535,30 +535,42 @@ void MainWnd::OnUpdateOptionsVideoDdrawusevideomemory(CCmdUI* pCmdUI) void MainWnd::OnOptionsVideoRenderoptionsD3dnofilter() { +#ifndef NO_D3D theApp.d3dFilter = 0; if( theApp.display ) { theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter ); } +#endif } void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dnofilter(CCmdUI* pCmdUI) { - pCmdUI->SetCheck(theApp.d3dFilter == 0); +#ifndef NO_D3D + pCmdUI->SetCheck(theApp.d3dFilter == 0); +#else + pCmdUI->Enable( FALSE ); +#endif } void MainWnd::OnOptionsVideoRenderoptionsD3dbilinear() { +#ifndef NO_D3D theApp.d3dFilter = 1; if( theApp.display ) { theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter ); } +#endif } void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dbilinear(CCmdUI* pCmdUI) { - pCmdUI->SetCheck(theApp.d3dFilter == 1); +#ifndef NO_D3D + pCmdUI->SetCheck(theApp.d3dFilter == 1); +#else + pCmdUI->Enable( FALSE ); +#endif }