Update of /cvsroot/vba/VisualBoyAdvance/src/win32
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20458/src/win32
Modified Files:
MainWndOptions.cpp
Log Message:
added NOSKIN option
Index: MainWndOptions.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/MainWndOptions.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MainWndOptions.cpp 6 Jun 2006 21:04:21 -0000 1.9
--- MainWndOptions.cpp 7 Jun 2006 18:13:54 -0000 1.10
***************
*** 583,586 ****
--- 583,587 ----
void MainWnd::OnOptionsVideoRenderoptionsSelectskin()
{
+ #ifndef NOSKINS
LPCTSTR exts[] = {".ini" };
CString filter = winLoadFilter(IDS_FILTER_INI);
***************
*** 616,619 ****
--- 617,623 ----
theApp.winUpdateSkin();
theApp.winAccelMgr.UpdateMenu(theApp.menu);
+ #else
+ systemMessage( 0, _T("This build of VBA does not support skins!") );
+ #endif
}
***************
*** 626,632 ****
--- 630,640 ----
void MainWnd::OnOptionsVideoRenderoptionsSkin()
{
+ #ifndef NOSKINS
theApp.skinEnabled = !theApp.skinEnabled;
theApp.updateRenderMethod(true);
theApp.winAccelMgr.UpdateMenu(theApp.menu);
+ #else
+ systemMessage( 0, _T("This build of VBA does not support skins!") );
+ #endif
}
|