Diff for /np2/win9x/dialog/d_about.cpp between versions 1.3 and 1.9

version 1.3, 2003/10/30 12:45:38 version 1.9, 2004/04/09 10:52:21
Line 2 Line 2
 #include        "resource.h"  #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
 #include        "np2class.h"  #include        "np2class.h"
 #include        "np2info.h"  
 #include        "dialog.h"  #include        "dialog.h"
 #include        "dialogs.h"  #include        "dialogs.h"
   #include        "np2ver.h"
 #include        "pccore.h"  #include        "pccore.h"
   #include        "np2info.h"
   
   
 static  SIZE    aboutsize;  static  SIZE    aboutsize;
   
 static const char str_np2title[] = "Neko Project II  ";  static const char str_np2title[] = "Neko Project II  ";
 static const char np2infostr[] =                                                                        \  static const char np2infostr[] =                                                                \
                                                 "CPU: !CPU !CLOCK\r\n"                                          \                                                  "CPU: %CPU% %CLOCK%\n"                                  \
                                                 "MEM: !MEM1\r\n"                                                        \                                                  "MEM: %MEM1%\n"                                                 \
                                                 "GDC: !GDC\r\n"                                                         \                                                  "GDC: %GDC%\n"                                                  \
                                                 "TEXT: !TEXT\r\n"                                                       \                                                  "     %GDC2%\n"                                                 \
                                                 "GRPH: !GRPH\r\n"                                                       \                                                  "TEXT: %TEXT%\n"                                                \
                                                 "SOUND: !EXSND\r\n"                                                     \                                                  "GRPH: %GRPH%\n"                                                \
                                                 "\r\n"                                                                          \                                                  "SOUND: %EXSND%\n"                                              \
                                                 "BIOS: !BIOS\r\n"                                                       \                                                  "\n"                                                                    \
                                                 "RHYTHM: !RHYTHM\r\n"                                           \                                                  "BIOS: %BIOS%\n"                                                \
                                                 "\r\n"                                                                          \                                                  "RHYTHM: %RHYTHM%\n"                                    \
                                                 "SCREEN: !DISP";                                                  "\n"                                                                    \
                                                   "SCREEN: %DISP%";
   
   
 static void about_init(HWND hWnd) {  static void about_init(HWND hWnd) {
   
         char    work[128];          char    work[128];
         RECT    rect;          RECT    rectwindow;
           RECT    rectclient;
         POINT   pt;          POINT   pt;
         RECT    parent;          RECT    parent;
   
         milstr_ncpy(work, str_np2title, sizeof(work));          milstr_ncpy(work, str_np2title, sizeof(work));
         milstr_ncat(work, np2version, sizeof(work));          milstr_ncat(work, np2version, sizeof(work));
   #if defined(NP2VER_WIN9X)
           milstr_ncat(work, NP2VER_WIN9X, sizeof(work));
   #endif
         SetDlgItemText(hWnd, IDC_NP2VER, work);          SetDlgItemText(hWnd, IDC_NP2VER, work);
         GetWindowRect(hWnd, &rect);          GetWindowRect(hWnd, &rectwindow);
         aboutsize.cx = rect.right - rect.left;          GetClientRect(hWnd, &rectclient);
         aboutsize.cy = rect.bottom - rect.top;          aboutsize.cx = rectwindow.right - rectwindow.left;
           aboutsize.cy = rectwindow.bottom - rectwindow.top;
         pt.x = 0;          pt.x = 0;
         pt.y = 0;          pt.y = 0;
         ClientToScreen(GetParent(hWnd), &pt);          ClientToScreen(GetParent(hWnd), &pt);
         GetClientRect(GetParent(hWnd), &parent);          GetClientRect(GetParent(hWnd), &parent);
         np2class_move(hWnd,          np2class_move(hWnd,
                                         pt.x + ((parent.right - parent.left - aboutsize.cx) / 2),                                          pt.x + ((parent.right - parent.left - aboutsize.cx) / 2),
                                         pt.y + ((parent.bottom - parent.top - 84) / 2),                                          pt.y + ((parent.bottom - parent.top - aboutsize.cy) / 2),
                                         aboutsize.cx, 84);                                          aboutsize.cx,
                                           aboutsize.cy + 60 - (rectclient.bottom - rectclient.top));
   
         SetFocus(GetDlgItem(hWnd, IDOK));          SetFocus(GetDlgItem(hWnd, IDOK));
 }  }
   
Line 54  static void about_more(HWND hWnd) { Line 63  static void about_more(HWND hWnd) {
         char    infostr[1024];          char    infostr[1024];
         RECT    rect;          RECT    rect;
   
         np2info(infostr, np2infostr, sizeof(infostr));          np2info(infostr, np2infostr, sizeof(infostr), NULL);
         SetDlgItemText(hWnd, IDC_NP2INFO, infostr);          SetDlgItemText(hWnd, IDC_NP2INFO, infostr);
         EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE);          EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE);
         GetWindowRect(hWnd, &rect);          GetWindowRect(hWnd, &rect);

Removed from v.1.3  
changed lines
  Added in v.1.9


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