Diff for /np2/win9x/np2.cpp between versions 1.52 and 1.56

version 1.52, 2004/05/21 08:40:27 version 1.56, 2005/02/07 14:46:14
Line 56  static char  szClassName[] = "NP2-MainWi Line 56  static char  szClassName[] = "NP2-MainWi
                 HINSTANCE       hInst;                  HINSTANCE       hInst;
                 HINSTANCE       hPrev;                  HINSTANCE       hPrev;
                 int                     mmxflag;                  int                     mmxflag;
                 BYTE            np2break = 0;                                                                   // ver0.30                  UINT8           np2break = 0;                                                                   // ver0.30
                 BOOL            winui_en;                  BOOL            winui_en;
   
                 NP2OSCFG        np2oscfg = {                  NP2OSCFG        np2oscfg = {
Line 74  static char  szClassName[] = "NP2-MainWi Line 74  static char  szClassName[] = "NP2-MainWi
                                                 {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                  {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34
                                                 {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                  {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34
                                                 0xffffff, 0xffbf6a, 0, 0,                                                  0xffffff, 0xffbf6a, 0, 0,
                                                 0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};                                                  0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
   
                 char            fddfolder[MAX_PATH];                  char            fddfolder[MAX_PATH];
                 char            hddfolder[MAX_PATH];                  char            hddfolder[MAX_PATH];
Line 84  static char  szClassName[] = "NP2-MainWi Line 84  static char  szClassName[] = "NP2-MainWi
 static  UINT            framecnt = 0;  static  UINT            framecnt = 0;
 static  UINT            waitcnt = 0;  static  UINT            waitcnt = 0;
 static  UINT            framemax = 1;  static  UINT            framemax = 1;
 static  BYTE            np2stopemulate = 0;  static  UINT8           np2stopemulate = 0;
 static  int                     np2opening = 1;  static  int                     np2opening = 1;
 static  int                     np2quitmsg = 0;  static  int                     np2quitmsg = 0;
 static  HMENU           hStat = NULL;  static  HMENU           hStat = NULL;
 static  BYTE            scrnmode;  static  UINT8           scrnmode;
 static  WINLOCEX        smwlex;  static  WINLOCEX        smwlex;
   
 static const char np2help[] = "np2.chm";  static const char np2help[] = "np2.chm";
Line 132  WINLOCEX np2_winlocexallwin(HWND base) { Line 132  WINLOCEX np2_winlocexallwin(HWND base) {
         return(winlocex_create(base, list, cnt));          return(winlocex_create(base, list, cnt));
 }  }
   
 static void changescreen(BYTE newmode) {  static void changescreen(UINT8 newmode) {
   
         BYTE            change;          UINT8           change;
         BYTE            renewal;          UINT8           renewal;
         WINLOCEX        wlex;          WINLOCEX        wlex;
   
         change = scrnmode ^ newmode;          change = scrnmode ^ newmode;
Line 363  static void np2cmd(HWND hWnd, UINT16 cmd Line 363  static void np2cmd(HWND hWnd, UINT16 cmd
                         sstpmsg_config();                          sstpmsg_config();
                         DialogBox(hInst, MAKEINTRESOURCE(IDD_CONFIG),                          DialogBox(hInst, MAKEINTRESOURCE(IDD_CONFIG),
                                                                         hWnd, (DLGPROC)CfgDialogProc);                                                                          hWnd, (DLGPROC)CfgDialogProc);
                           if (!scrnmng_isfullscreen()) {
                                   UINT8 thick;
                                   thick = (GetWindowLong(hWnd, GWL_STYLE) & WS_THICKFRAME)?1:0;
                                   if (thick != np2oscfg.thickframe) {
                                           WINLOCEX wlex;
                                           wlex = np2_winlocexallwin(hWnd);
                                           winlocex_setholdwnd(wlex, hWnd);
                                           np2class_frametype(hWnd, np2oscfg.thickframe);
                                           winlocex_move(wlex);
                                           winlocex_destroy(wlex);
                                   }
                           }
                         winuileave();                          winuileave();
                         break;                          break;
   
Line 798  static void np2cmd(HWND hWnd, UINT16 cmd Line 810  static void np2cmd(HWND hWnd, UINT16 cmd
                         dialog_writebmp(hWnd);                          dialog_writebmp(hWnd);
                         winuileave();                          winuileave();
                         break;                          break;
 #if defined(SUPPPORT_S98)  #if defined(SUPPORT_S98)
                 case IDM_S98LOGGING:                  case IDM_S98LOGGING:
                         winuienter();                          winuienter();
                         dialog_s98(hWnd);                          dialog_s98(hWnd);
Line 1349  static void framereset(UINT cnt) { Line 1361  static void framereset(UINT cnt) {
   
         framecnt = 0;          framecnt = 0;
         scrnmng_dispclock();          scrnmng_dispclock();
         kdispwin_draw((BYTE)cnt);          kdispwin_draw((UINT8)cnt);
         skbdwin_process();          skbdwin_process();
         mdbgwin_process();          mdbgwin_process();
         toolwin_draw((BYTE)cnt);          toolwin_draw((UINT8)cnt);
         viewer_allreload(FALSE);          viewer_allreload(FALSE);
         if (np2oscfg.DISPCLK & 3) {          if (np2oscfg.DISPCLK & 3) {
                 if (sysmng_workclockrenewal()) {                  if (sysmng_workclockrenewal()) {
Line 1380  int WINAPI WinMain(HINSTANCE hInstance,  Line 1392  int WINAPI WinMain(HINSTANCE hInstance, 
         MSG                     msg;          MSG                     msg;
         HWND            hWnd;          HWND            hWnd;
         UINT            i;          UINT            i;
           DWORD           style;
 #ifdef OPENING_WAIT  #ifdef OPENING_WAIT
         UINT32          tick;          UINT32          tick;
 #endif  #endif
           BOOL            xrollkey;
   
         _MEM_INIT();          _MEM_INIT();
   
Line 1414  int WINAPI WinMain(HINSTANCE hInstance,  Line 1428  int WINAPI WinMain(HINSTANCE hInstance, 
         mmxflag += (np2oscfg.disablemmx)?MMXFLAG_DISABLE:0;          mmxflag += (np2oscfg.disablemmx)?MMXFLAG_DISABLE:0;
         TRACEINIT();          TRACEINIT();
   
           xrollkey = (np2oscfg.xrollkey == 0);
         if (np2oscfg.KEYBOARD >= KEY_TYPEMAX) {          if (np2oscfg.KEYBOARD >= KEY_TYPEMAX) {
                 int keytype = GetKeyboardType(1);                  int keytype = GetKeyboardType(1);
                 if ((keytype & 0xff00) == 0x0d00) {                  if ((keytype & 0xff00) == 0x0d00) {
                         np2oscfg.KEYBOARD = KEY_PC98;                          np2oscfg.KEYBOARD = KEY_PC98;
                           xrollkey = !xrollkey;
                 }                  }
                 else if (!keytype) {                  else if (!keytype) {
                         np2oscfg.KEYBOARD = KEY_KEY101;                          np2oscfg.KEYBOARD = KEY_KEY101;
Line 1426  int WINAPI WinMain(HINSTANCE hInstance,  Line 1442  int WINAPI WinMain(HINSTANCE hInstance, 
                         np2oscfg.KEYBOARD = KEY_KEY106;                          np2oscfg.KEYBOARD = KEY_KEY106;
                 }                  }
         }          }
         winkbd_roll(np2oscfg.KEYBOARD != KEY_PC98);          winkbd_roll(xrollkey);
         winkbd_setf12(np2oscfg.F12COPY);          winkbd_setf12(np2oscfg.F12COPY);
         keystat_initialize();          keystat_initialize();
   
Line 1454  int WINAPI WinMain(HINSTANCE hInstance,  Line 1470  int WINAPI WinMain(HINSTANCE hInstance, 
   
         mousemng_initialize();          mousemng_initialize();
   
         hWnd = CreateWindowEx(0, szClassName, np2oscfg.titles,          style = WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX;
                                                 WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION |          if (np2oscfg.thickframe) {
                                                 WS_THICKFRAME | WS_MINIMIZEBOX,                  style |= WS_THICKFRAME;
           }
           hWnd = CreateWindowEx(0, szClassName, np2oscfg.titles, style,
                                                 np2oscfg.winx, np2oscfg.winy, 640, 400,                                                  np2oscfg.winx, np2oscfg.winy, 640, 400,
                                                 NULL, NULL, hInstance, NULL);                                                  NULL, NULL, hInstance, NULL);
         hWndMain = hWnd;          hWndMain = hWnd;

Removed from v.1.52  
changed lines
  Added in v.1.56


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