Diff for /np2/win9x/trace.cpp between versions 1.10 and 1.11

version 1.10, 2005/02/07 14:46:14 version 1.11, 2005/02/15 18:42:20
Line 63  static HFONT  hfView = NULL; Line 63  static HFONT  hfView = NULL;
 static  HBRUSH          hBrush = NULL;  static  HBRUSH          hBrush = NULL;
 static  char            szView[VIEW_BUFFERSIZE];  static  char            szView[VIEW_BUFFERSIZE];
 static  TRACECFG        tracecfg;  static  TRACECFG        tracecfg;
   static  int                     devpos;
   static  char            devstr[256];
   
 static const char       np2trace[] = "np2trace.ini";  static const char       np2trace[] = "np2trace.ini";
 static const char       inititle[] = "TRACE";  static const char       inititle[] = "TRACE";
Line 365  void trace_init(void) { Line 367  void trace_init(void) {
         }          }
   
 #if 1  #if 1
         tracewin.en = 0;          tracewin.en = 4;
         tracewin.fh = FILEH_INVALID;  
 #else  #else
         tracewin.en = 0;          tracewin.en = 0;
         tracewin.fh = FILEH_INVALID;  
         trfh_open("traces.txt");  
 #endif  #endif
           tracewin.fh = FILEH_INVALID;
   
         tracecfg.posx = CW_USEDEFAULT;          tracecfg.posx = CW_USEDEFAULT;
         tracecfg.posy = CW_USEDEFAULT;          tracecfg.posy = CW_USEDEFAULT;
Line 449  void trace_fmt2(const char *fmt, ...) { Line 449  void trace_fmt2(const char *fmt, ...) {
         }          }
 }  }
   
   void trace_char(char c) {
   
           if ((c == 0x0a) || (c == 0x0d)) {
                   if (devpos) {
                           devstr[devpos] = '\0';
                           if ((tracewin.en & 4) && (hView)) {
                                   View_AddString(devstr);
                           }
                           if (tracewin.fh != FILEH_INVALID) {
                                   trfh_add(devstr);
                                   trfh_add(crlf);
                           }
                           devpos = 0;
                   }
           }
           else {
                   if (devpos < (sizeof(devstr) - 1)) {
                           devstr[devpos++] = c;
                   }
           }
   }
 #endif  #endif
   

Removed from v.1.10  
changed lines
  Added in v.1.11


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