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