--- xmil/win9xc/xmil.cpp 2004/08/17 12:30:41 1.6 +++ xmil/win9xc/xmil.cpp 2005/02/04 06:42:12 1.8 @@ -11,7 +11,6 @@ #include "soundmng.h" #include "sysmng.h" #include "scrndraw.h" -#include "ddrawbmp.h" #include "winkbd.h" #include "menu.h" #include "ini.h" @@ -244,10 +243,12 @@ static void xmilcmd(HWND hWnd, UINT cmd) menu_setkey(2); break; +#if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM) case IDM_FMBOARD: menu_setsound(xmilcfg.SOUND_SW ^ 1); update = SYS_UPDATECFG; break; +#endif case IDM_JOYSTICK: menu_setjoystick(xmiloscfg.JOYSTICK ^ 1); @@ -267,7 +268,7 @@ static void xmilcmd(HWND hWnd, UINT cmd) case IDM_BMPSAVE: winuienter(); - bmpsave(); + dialog_writebmp(hWnd); winuileave(); break; @@ -634,7 +635,9 @@ int WINAPI WinMain(HINSTANCE hInstance, menu_setwaitflg(xmiloscfg.NOWAIT); menu_setframe(xmiloscfg.DRAW_SKIP); menu_setkey(0); +#if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM) menu_setsound(xmilcfg.SOUND_SW); +#endif menu_setjoystick(xmiloscfg.JOYSTICK); menu_setmouse(xmilcfg.MOUSE_SW); menu_setmotorflg(xmilcfg.MOTOR);