Diff for /np2/win9x/dialog/d_about.cpp between versions 1.5 and 1.12

version 1.5, 2003/11/07 20:07:58 version 1.12, 2005/03/20 13:12:49
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "resource.h"  #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.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        "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  ";  #if !defined(SUPPORT_PC9821)
 static const char np2infostr[] =                                                                        \  static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project II  ");
                                                 "CPU: !CPU !CLOCK\r\n"                                          \  #else
                                                 "MEM: !MEM1\r\n"                                                        \  static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project 21  ");
                                                 "GDC: !GDC\r\n"                                                         \  #endif
                                                 "TEXT: !TEXT\r\n"                                                       \  static const OEMCHAR np2infostr[] = OEMTEXT("CPU: %CPU% %CLOCK%\nMEM: %MEM1%\nGDC: %GDC%\n     %GDC2%\nTEXT: %TEXT%\nGRPH: %GRPH%\nSOUND: %EXSND%\n\nBIOS: %BIOS%\nRHYTHM: %RHYTHM%\n\nSCREEN: %DISP%");
                                                 "GRPH: !GRPH\r\n"                                                       \  
                                                 "SOUND: !EXSND\r\n"                                                     \  
                                                 "\r\n"                                                                          \  
                                                 "BIOS: !BIOS\r\n"                                                       \  
                                                 "RHYTHM: !RHYTHM\r\n"                                           \  
                                                 "\r\n"                                                                          \  
                                                 "SCREEN: !DISP";  
   
   
 static void about_init(HWND hWnd) {  static void about_init(HWND hWnd) {
   
         char    work[128];          OEMCHAR 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, NELEMENTS(work));
         milstr_ncat(work, np2version, sizeof(work));          milstr_ncat(work, np2version, NELEMENTS(work));
 #if defined(NP2VER_WIN9X)  #if defined(NP2VER_WIN9X)
         milstr_ncat(work, NP2VER_WIN9X, sizeof(work));          milstr_ncat(work, NP2VER_WIN9X, NELEMENTS(work));
 #endif  #endif
   #if defined(OSLANG_UTF8)
           TCHAR   tchr[128];
           oemtotchar(tchr, NELEMENTS(tchr), work, -1);
           SetDlgItemText(hWnd, IDC_NP2VER, tchr);
   #else
         SetDlgItemText(hWnd, IDC_NP2VER, work);          SetDlgItemText(hWnd, IDC_NP2VER, work);
         GetWindowRect(hWnd, &rect);  #endif
         aboutsize.cx = rect.right - rect.left;          GetWindowRect(hWnd, &rectwindow);
         aboutsize.cy = rect.bottom - rect.top;          GetClientRect(hWnd, &rectclient);
           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);
Line 49  static void about_init(HWND hWnd) { Line 51  static void about_init(HWND hWnd) {
         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 - aboutsize.cy) / 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));
 }  }
   
 static void about_more(HWND hWnd) {  static void about_more(HWND hWnd) {
   
         char    infostr[1024];          OEMCHAR infostr[1024];
         RECT    rect;          RECT    rect;
   
         np2info(infostr, np2infostr, sizeof(infostr));          np2info(infostr, np2infostr, NELEMENTS(infostr), NULL);
   #if defined(OSLANG_UTF8)
           TCHAR   tchr[1024];
           oemtotchar(tchr, NELEMENTS(tchr), infostr, -1);
           SetDlgItemText(hWnd, IDC_NP2INFO, tchr);
   #else
         SetDlgItemText(hWnd, IDC_NP2INFO, infostr);          SetDlgItemText(hWnd, IDC_NP2INFO, infostr);
   #endif
         EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE);          EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE);
         GetWindowRect(hWnd, &rect);          GetWindowRect(hWnd, &rect);
         np2class_move(hWnd, rect.left, rect.top, aboutsize.cx, aboutsize.cy);          np2class_move(hWnd, rect.left, rect.top, aboutsize.cx, aboutsize.cy);

Removed from v.1.5  
changed lines
  Added in v.1.12


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