Diff for /np2/macosx/sysmng.cpp between versions 1.8 and 1.12

version 1.8, 2003/11/13 15:52:04 version 1.12, 2004/05/23 04:07:56
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "np2.h"  #include        "np2.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "i286.h"  
 #include        "sysmng.h"  #include        "sysmng.h"
   #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "fddfile.h"  #include        "fddfile.h"
 #include        "diskdrv.h"  #include        "diskdrv.h"
Line 24  static struct { Line 24  static struct {
 void sysmng_workclockreset(void) {  void sysmng_workclockreset(void) {
   
         workclock.tick = GETTICK();          workclock.tick = GETTICK();
         workclock.clock = I286_CLOCK;          workclock.clock = CPU_CLOCK;
         workclock.draws = drawcount;          workclock.draws = drawcount;
 }  }
   
Line 39  BOOL sysmng_workclockrenewal(void) { Line 39  BOOL sysmng_workclockrenewal(void) {
         workclock.tick += tick;          workclock.tick += tick;
         workclock.fps = ((drawcount - workclock.draws) * 10000) / tick;          workclock.fps = ((drawcount - workclock.draws) * 10000) / tick;
         workclock.draws = drawcount;          workclock.draws = drawcount;
         workclock.khz = (I286_CLOCK - workclock.clock) / tick;          workclock.khz = (CPU_CLOCK - workclock.clock) / tick;
         workclock.clock = I286_CLOCK;          workclock.clock = CPU_CLOCK;
         return(TRUE);          return(TRUE);
 }  }
   
Line 98  void sysmng_updatecaption(BYTE flag) { Line 98  void sysmng_updatecaption(BYTE flag) {
 #if defined(NP2GCC)  #if defined(NP2GCC)
         milstr_ncpy(work, np2oscfg.titles, sizeof(work));          milstr_ncpy(work, np2oscfg.titles, sizeof(work));
 #else  #else
   #if !defined(SUPPORT_PC9821)
         milstr_ncpy(work, "Neko Project II", sizeof(work));          milstr_ncpy(work, "Neko Project II", sizeof(work));
   #else
           milstr_ncpy(work, "Neko Project 21", sizeof(work));
   #endif
 #endif  #endif
         milstr_ncat(work, strtitle, sizeof(work));          milstr_ncat(work, strtitle, sizeof(work));
         milstr_ncat(work, strclock, sizeof(work));          milstr_ncat(work, strclock, sizeof(work));
   
 #if defined(NP2GCC)  #if defined(NP2GCC)
     SetWindowTitleWithCFString(hWndMain, CFStringCreateWithCString(NULL, work, kCFStringEncodingUTF8));          CFStringRef cfstr;
           cfstr = CFStringCreateWithCString(NULL, work, CFStringGetSystemEncoding());
       SetWindowTitleWithCFString(hWndMain, cfstr);
           CFRelease(cfstr);
 #else  #else
         mkstr255(str, work);          mkstr255(str, work);
         SetWTitle(hWndMain, str);          SetWTitle(hWndMain, str);

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


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