Diff for /np2/win9x/np2.cpp between versions 1.25 and 1.29

version 1.25, 2003/11/04 19:23:03 version 1.29, 2003/11/14 07:37:29
Line 685  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 685  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                                         break;                                          break;
   
                                 case IDM_NOSOUND:                                  case IDM_NOSOUND:
                                         xmenu_setsound(0);                                          xmenu_setsound(0x00);
                                         update |= SYS_UPDATECFG;                                          update |= SYS_UPDATECFG;
                                         break;                                          break;
   
                                 case IDM_PC9801_14:                                  case IDM_PC9801_14:
                                         xmenu_setsound(1);                                          xmenu_setsound(0x01);
                                         update |= SYS_UPDATECFG;                                          update |= SYS_UPDATECFG;
                                         break;                                          break;
   
                                 case IDM_PC9801_26K:                                  case IDM_PC9801_26K:
                                         {                                          xmenu_setsound(0x02);
                                                 BYTE    sw;                                          update |= SYS_UPDATECFG;
                                                 sw = np2cfg.SOUND_SW;  
                                                 if (sw & 4) {  
                                                         sw &= 6;  
                                                         sw ^= 2;  
                                                 }  
                                                 else {  
                                                         sw = 2;  
                                                 }  
                                                 xmenu_setsound(sw);  
                                                 update |= SYS_UPDATECFG;  
                                         }  
                                         break;                                          break;
   
                                 case IDM_PC9801_86:                                  case IDM_PC9801_86:
                                         {                                          xmenu_setsound(0x04);
                                                 BYTE    sw;                                          update |= SYS_UPDATECFG;
                                                 sw = np2cfg.SOUND_SW;  
                                                 if (sw & 2) {  
                                                         sw &= 6;  
                                                         sw ^= 4;  
                                                 }  
                                                 else if (!(sw & 4)) {  
                                                         sw = 4;  
                                                 }  
                                                 xmenu_setsound(sw);  
                                                 update |= SYS_UPDATECFG;  
                                         }  
                                         break;                                          break;
   
                                 case IDM_PC9801_118:                                  case IDM_PC9801_26_86:
                                         xmenu_setsound(8);                                          xmenu_setsound(0x06);
                                         update |= SYS_UPDATECFG;                                          update |= SYS_UPDATECFG;
                                         break;                                          break;
   
                                 case IDM_CHIBIOTO:                                  case IDM_PC9801_86_CB:
                                         {                                          xmenu_setsound(0x14);
                                                 BYTE    sw;                                          update |= SYS_UPDATECFG;
                                                 sw = np2cfg.SOUND_SW;                                          break;
                                                 if (sw & 4) {  
                                                         sw &= 0x14;                                  case IDM_PC9801_118:
                                                         sw ^= 0x10;                                          xmenu_setsound(8);
                                                 }                                          update |= SYS_UPDATECFG;
                                                 else {  
                                                         sw = 0x14;  
                                                 }  
                                                 xmenu_setsound(sw);  
                                                 update |= SYS_UPDATECFG;  
                                         }  
                                         break;                                          break;
   
                                 case IDM_SPEAKBOARD:                                  case IDM_SPEAKBOARD:
Line 1227  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1199  LRESULT CALLBACK WndProc(HWND hWnd, UINT
 }  }
   
   
   static void framereset(UINT cnt) {
   
           framecnt = 0;
           scrnmng_dispclock();
           keydisp_draw((BYTE)cnt);
           toolwin_draw((BYTE)cnt);
           viewer_allreload(FALSE);
           if (np2oscfg.DISPCLK & 3) {
                   if (sysmng_workclockrenewal()) {
                           sysmng_updatecaption(3);
                   }
           }
   }
   
 static void processwait(UINT cnt) {  static void processwait(UINT cnt) {
   
         if (timing_getcount() >= cnt) {          if (timing_getcount() >= cnt) {
                 timing_setcount(0);                  timing_setcount(0);
                 framecnt = 0;                  framereset(cnt);
                 scrnmng_dispclock();  
                 keydisp_draw((BYTE)cnt);  
                 toolwin_draw((BYTE)cnt);  
                 viewer_allreload(FALSE);  
                 if (np2oscfg.DISPCLK & 3) {  
                         if (sysmng_workclockrenewal()) {  
                                 sysmng_updatecaption(3);  
                         }  
                 }  
         }          }
         else {          else {
                 Sleep(1);                  Sleep(1);
Line 1259  int WINAPI WinMain(HINSTANCE hInstance,  Line 1236  int WINAPI WinMain(HINSTANCE hInstance, 
         UINT32          tick;          UINT32          tick;
 #endif  #endif
   
           _MEM_INIT();
   
         GetModuleFileName(NULL, modulefile, sizeof(modulefile));          GetModuleFileName(NULL, modulefile, sizeof(modulefile));
         dosio_init();          dosio_init();
         file_setcd(modulefile);          file_setcd(modulefile);
Line 1419  int WINAPI WinMain(HINSTANCE hInstance,  Line 1398  int WINAPI WinMain(HINSTANCE hInstance, 
         if (np2oscfg.MOUSE_SW) {                                                                                // ver0.30          if (np2oscfg.MOUSE_SW) {                                                                                // ver0.30
                 mousemng_enable(MOUSEPROC_SYSTEM);                  mousemng_enable(MOUSEPROC_SYSTEM);
         }          }
   //      mousemng_enable(MOUSEPROC_WINUI);
   //      mousemng_enable(MOUSEPROC_BG);
   
         commng_initialize();          commng_initialize();
         sysmng_initialize();          sysmng_initialize();
Line 1548  int WINAPI WinMain(HINSTANCE hInstance,  Line 1529  int WINAPI WinMain(HINSTANCE hInstance, 
                                                         else {                                                          else {
                                                                 timing_setcount(cnt - framecnt);                                                                  timing_setcount(cnt - framecnt);
                                                         }                                                          }
                                                         processwait(0);                                                          framereset(0);
                                                 }                                                  }
                                         }                                          }
                                         else {                                          else {
Line 1602  int WINAPI WinMain(HINSTANCE hInstance,  Line 1583  int WINAPI WinMain(HINSTANCE hInstance, 
         }          }
   
         TRACETERM();          TRACETERM();
           _MEM_USED("report.txt");
         dosio_term();          dosio_term();
   
         viewer_term();                                                                                          // ver0.30          viewer_term();                                                                                          // ver0.30

Removed from v.1.25  
changed lines
  Added in v.1.29


RetroPC.NET-CVS <cvs@retropc.net>