--- np2/win9x/np2.cpp 2003/10/17 03:52:24 1.2 +++ np2/win9x/np2.cpp 2003/10/21 11:22:05 1.5 @@ -1,6 +1,8 @@ #include "compiler.h" #include +#ifndef __GNUC__ #include +#endif #include "resource.h" #include "strres.h" #include "np2.h" @@ -16,18 +18,19 @@ #include "winkbd.h" #include "ini.h" #include "menu.h" -#include "dialog.h" #include "winloc.h" #include "sstp.h" #include "sstpmsg.h" #include "dclock.h" +#ifdef USE_ROMEO +#include "juliet.h" +#endif +#include "dialog.h" #include "memory.h" #include "pccore.h" #include "iocore.h" #include "pc9861k.h" #include "mpu98ii.h" -#include "timing.h" -#include "debugsub.h" #include "bios.h" #include "scrndraw.h" #include "sound.h" @@ -35,14 +38,11 @@ #include "s98.h" #include "diskdrv.h" #include "fddfile.h" - -#ifdef USE_ROMEO -#include "juliet.h" -#endif - +#include "timing.h" +#include "statsave.h" +#include "debugsub.h" #include "keydisp.h" #include "viewer.h" -#include "statsave.h" #ifdef BETA_RELEASE @@ -275,7 +275,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT switch (msg) { case WM_CREATE: sstp_construct(hWnd); +#ifndef __GNUC__ WINNLSEnableIME(hWnd, FALSE); +#endif // DragAcceptFiles(hWnd, TRUE); break; @@ -323,13 +325,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT case IDM_SCRNMUL10: case IDM_SCRNMUL12: case IDM_SCRNMUL16: -#if 0 - if ((SCREENMODE & SCMD_WINDOWED) && + if ((!scrnmng_isfullscreen()) && !(GetWindowLong(hWndMain, GWL_STYLE) & WS_MINIMIZE)) { xmenu_setscrnmul(wParam - IDM_SCRNMUL); - ddraws_setmul(wParam - IDM_SCRNMUL); + scrnmng_setmultiple(wParam - IDM_SCRNMUL); } -#endif break; default: @@ -1079,9 +1079,9 @@ static void processwait(WORD cnt) { scrnmng_dispclock(); keydisp_draw(np2oscfg.DRAW_SKIP); viewer_allreload(FALSE); - if (np2oscfg.DISPCLK & 2) { + if (np2oscfg.DISPCLK & 3) { if (sysmng_workclockrenewal()) { - sysmng_updatecaption(2); + sysmng_updatecaption(3); } } } @@ -1097,7 +1097,7 @@ int WINAPI WinMain(HINSTANCE hInstance, MSG msg; HMENU hMenu; HWND hwndorg; - int i; + UINT i; #ifdef OPENING_WAIT UINT32 tick; #endif @@ -1110,7 +1110,7 @@ int WINAPI WinMain(HINSTANCE hInstance, srand((unsigned)time(NULL)); -// np2arg_analize(lpszCmdLine); + np2arg_analize(lpszCmdLine); CopyMemory(szClassName, np2oscfg.winid, 3);