Diff for /np2/win9x/debuguty/viewsnd.cpp between versions 1.6 and 1.8

version 1.6, 2005/02/09 20:11:36 version 1.8, 2005/03/20 13:12:49
Line 2 Line 2
 #include        "strres.h"  #include        "strres.h"
 #include        "resource.h"  #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.h"
 #include        "viewer.h"  #include        "viewer.h"
 #include        "viewcmn.h"  #include        "viewcmn.h"
 #include        "viewmenu.h"  #include        "viewmenu.h"
Line 13 Line 14
   
   
 typedef struct {  typedef struct {
 const OEMCHAR   *str;  const TCHAR     *str;
         UINT16          reg;          UINT16  reg;
         UINT16          mask;          UINT16  mask;
 } FMSNDTBL;  } FMSNDTBL;
   
 static const FMSNDTBL fmsndtbl[] = {  static const FMSNDTBL fmsndtbl[] = {
                 {OEMTEXT("Sound-Board I"), 0, 0},                  {_T("Sound-Board I"), 0, 0},
                 {NULL, 0x0000, 0xffff},                  {NULL, 0x0000, 0xffff},
                 {NULL, 0x0010, 0x3f07},                  {NULL, 0x0010, 0x3f07},
                 {NULL, 0x0020, 0x07e6},                  {NULL, 0x0020, 0x07e6},
Line 32  static const FMSNDTBL fmsndtbl[] = { Line 33  static const FMSNDTBL fmsndtbl[] = {
                 {NULL, 0x0090, 0x7777},                  {NULL, 0x0090, 0x7777},
                 {NULL, 0x00a0, 0x7777},                  {NULL, 0x00a0, 0x7777},
                 {NULL, 0x00b0, 0x0077},                  {NULL, 0x00b0, 0x0077},
                 {str_null, 0, 0},                  {tchar_null, 0, 0},
                 {NULL, 0x0100, 0xffff},                  {NULL, 0x0100, 0xffff},
                 {NULL, 0x0110, 0x0001},                  {NULL, 0x0110, 0x0001},
                 {NULL, 0x0130, 0x7777},                  {NULL, 0x0130, 0x7777},
Line 44  static const FMSNDTBL fmsndtbl[] = { Line 45  static const FMSNDTBL fmsndtbl[] = {
                 {NULL, 0x0190, 0x7777},                  {NULL, 0x0190, 0x7777},
                 {NULL, 0x01a0, 0x7777},                  {NULL, 0x01a0, 0x7777},
                 {NULL, 0x01b0, 0x0077},                  {NULL, 0x01b0, 0x0077},
                 {str_null, 0, 0},                  {tchar_null, 0, 0},
                 {OEMTEXT("Sound-Board II"), 0, 0},                  {_T("Sound-Board II"), 0, 0},
                 {NULL, 0x0200, 0xffff},                  {NULL, 0x0200, 0xffff},
                 {NULL, 0x0220, 0x07e6},                  {NULL, 0x0220, 0x07e6},
                 {NULL, 0x0230, 0x7777},                  {NULL, 0x0230, 0x7777},
Line 57  static const FMSNDTBL fmsndtbl[] = { Line 58  static const FMSNDTBL fmsndtbl[] = {
                 {NULL, 0x0290, 0x7777},                  {NULL, 0x0290, 0x7777},
                 {NULL, 0x02a0, 0x7777},                  {NULL, 0x02a0, 0x7777},
                 {NULL, 0x02b0, 0x0077},                  {NULL, 0x02b0, 0x0077},
                 {str_null, 0, 0},                  {tchar_null, 0, 0},
                 {NULL, 0x0230, 0x7777},                  {NULL, 0x0230, 0x7777},
                 {NULL, 0x0240, 0x7777},                  {NULL, 0x0240, 0x7777},
                 {NULL, 0x0250, 0x7777},                  {NULL, 0x0250, 0x7777},
Line 75  static void viewsnd_paint(NP2VIEW_T *vie Line 76  static void viewsnd_paint(NP2VIEW_T *vie
         LONG    y;          LONG    y;
         UINT    pos;          UINT    pos;
 const UINT8     *p;  const UINT8     *p;
         OEMCHAR str[16];          TCHAR   str[16];
         HFONT   hfont;          HFONT   hfont;
         UINT    reg;          UINT    reg;
         UINT16  mask;          UINT16  mask;
Line 107  const UINT8 *p; Line 108  const UINT8 *p;
         for (y=0; (y<rc->bottom) && (pos<NELEMENTS(fmsndtbl)); y+=16, pos++) {          for (y=0; (y<rc->bottom) && (pos<NELEMENTS(fmsndtbl)); y+=16, pos++) {
                 if (fmsndtbl[pos].str) {                  if (fmsndtbl[pos].str) {
                         TextOut(hdc, 0, y, fmsndtbl[pos].str,                          TextOut(hdc, 0, y, fmsndtbl[pos].str,
                                                                                                 OEMSTRLEN(fmsndtbl[pos].str));                                                                                                  lstrlen(fmsndtbl[pos].str));
                 }                  }
                 else {                  else {
                         reg = fmsndtbl[pos].reg;                          reg = fmsndtbl[pos].reg;
                         mask = fmsndtbl[pos].mask;                          mask = fmsndtbl[pos].mask;
   
                         OEMSPRINTF(str, OEMTEXT("%04x"), reg & 0x1ff);                          wsprintf(str, _T("%04x"), reg & 0x1ff);
                         TextOut(hdc, 0, y, str, 4);                          TextOut(hdc, 0, y, str, 4);
   
                         if (view->lock) {                          if (view->lock) {

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


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