Diff for /np2/vram/scrndraw.c between versions 1.4 and 1.5

version 1.4, 2004/02/07 21:23:22 version 1.5, 2004/02/09 20:39:39
Line 131  const SDRAWFN *sdrawfn; Line 131  const SDRAWFN *sdrawfn;
         _SDRAW          sdraw;          _SDRAW          sdraw;
         BYTE            bit;          BYTE            bit;
         int                     i;          int                     i;
           int                     height;
   
         if (redraw) {          if (redraw) {
                 updateallline(0x80808080);                  updateallline(0x80808080);
Line 165  const SDRAWFN *sdrawfn; Line 166  const SDRAWFN *sdrawfn;
                         renewal_line[i] &= ~bit;                          renewal_line[i] &= ~bit;
                 }                  }
         }          }
         if (gdc.mode1 & 0x10) {          height = surf->height;
                 sdrawfn += 4;  #if defined(SUPPORT_CRT15KHZ)
                 if (np2cfg.skipline) {          if (gdc.crt15khz & 2) {
                   sdrawfn += 12;
                   height >>= 1;
           }
           else {
   #endif
                   if (gdc.mode1 & 0x10) {
                         sdrawfn += 4;                          sdrawfn += 4;
                           if (np2cfg.skipline) {
                                   sdrawfn += 4;
                           }
                 }                  }
   #if defined(SUPPORT_CRT15KHZ)
         }          }
   #endif
         switch(bit & 7) {          switch(bit & 7) {
                 case 1:                                                         // grph1                  case 1:                                                         // grph1
                         sdrawfn += 2;                          sdrawfn += 2;
Line 206  const SDRAWFN *sdrawfn; Line 218  const SDRAWFN *sdrawfn;
         sdraw.xalign = surf->xalign;          sdraw.xalign = surf->xalign;
         sdraw.yalign = surf->yalign;          sdraw.yalign = surf->yalign;
         if ((!gdc.analog) || (palevent.events >= PALEVENTMAX)) {          if ((!gdc.analog) || (palevent.events >= PALEVENTMAX)) {
                 (*(*sdrawfn))(&sdraw, surf->height);                  (*(*sdrawfn))(&sdraw, height);
         }          }
         else {          else {
                 ret = rasterdraw(*sdrawfn, &sdraw, surf->height);                  ret = rasterdraw(*sdrawfn, &sdraw, height);
         }          }
   
 sddr_exit2:  sddr_exit2:

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


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