Diff for /np2/lio/gpset.c between versions 1.8 and 1.12

version 1.8, 2004/02/21 06:26:34 version 1.12, 2005/02/07 14:46:12
Line 4 Line 4
   
   
 typedef struct {  typedef struct {
         BYTE    x[2];          UINT8   x[2];
         BYTE    y[2];          UINT8   y[2];
         BYTE    pal;          UINT8   pal;
 } GPSET;  } GPSET;
   
 typedef struct {  typedef struct {
         BYTE    x[2];          UINT8   x[2];
         BYTE    y[2];          UINT8   y[2];
 } GPOINT2;  } GPOINT2;
   
   
 // ---- CLS  
   
 REG8 lio_gcls(LIOWORK lio) {  
   
         SINT16  y;  
   
         lio_updatedraw(lio);  
         for (y=lio->draw.y1; y<=lio->draw.y2; y++) {  
                 lio_line(lio, lio->draw.x1, lio->draw.x2, y, lio->mem.bgcolor);  
         }  
         return(LIO_SUCCESS);  
 }  
   
   
 // ---- PSET  // ---- PSET
   
 REG8 lio_gpset(LIOWORK lio) {  REG8 lio_gpset(GLIO lio) {
   
         GPSET   dat;          GPSET   dat;
         SINT16  x;          SINT16  x;
         SINT16  y;          SINT16  y;
   
         lio_updatedraw(lio);          lio_updatedraw(lio);
         i286_memstr_read(CPU_DS, CPU_BX, &dat, sizeof(dat));          MEML_READSTR(CPU_DS, CPU_BX, &dat, sizeof(dat));
         x = (SINT16)LOADINTELWORD(dat.x);          x = (SINT16)LOADINTELWORD(dat.x);
         y = (SINT16)LOADINTELWORD(dat.y);          y = (SINT16)LOADINTELWORD(dat.y);
         if (dat.pal == 0xff) {          if (dat.pal == 0xff) {
                 if (CPU_AH == 1) {                  if (CPU_AH == 1) {
                         dat.pal = lio->mem.fgcolor;                          dat.pal = lio->work.fgcolor;
                 }                  }
                 else {                  else {
                         dat.pal = lio->mem.bgcolor;                          dat.pal = lio->work.bgcolor;
                 }                  }
         }          }
         lio_pset(lio, x, y, dat.pal);          lio_pset(lio, x, y, dat.pal);
Line 56  REG8 lio_gpset(LIOWORK lio) { Line 42  REG8 lio_gpset(LIOWORK lio) {
   
 // ---- GPOINT2  // ---- GPOINT2
   
 REG8 lio_gpoint2(LIOWORK lio) {  REG8 lio_gpoint2(GLIO lio) {
   
         GPOINT2 dat;          GPOINT2 dat;
         SINT16  x;          SINT16  x;
Line 65  REG8 lio_gpoint2(LIOWORK lio) { Line 51  REG8 lio_gpoint2(LIOWORK lio) {
         UINT32  addr;          UINT32  addr;
         UINT    sft;          UINT    sft;
         UINT    pl;          UINT    pl;
 const BYTE      *ptr;  const UINT8     *ptr;
   
         lio_updatedraw(lio);          lio_updatedraw(lio);
         i286_memstr_read(CPU_DS, CPU_BX, &dat, sizeof(dat));          MEML_READSTR(CPU_DS, CPU_BX, &dat, sizeof(dat));
         x = (SINT16)LOADINTELWORD(dat.x);          x = (SINT16)LOADINTELWORD(dat.x);
         y = (SINT16)LOADINTELWORD(dat.y);          y = (SINT16)LOADINTELWORD(dat.y);
         if ((lio->draw.x1 > x) || (lio->draw.x2 < x) ||          if ((lio->draw.x1 > x) || (lio->draw.x2 < x) ||

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


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