Diff for /np2/vram/sdraw.mcr between versions 1.1 and 1.4

version 1.1, 2003/10/16 17:58:14 version 1.4, 2004/01/22 01:10:04
Line 1 Line 1
   
 // ---- plasma display  // ---- plasma display
   
 // vram off / 32bit色  // vram off
 static void SCRNCALL SDSYM(p_0)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_0)(SDRAW sdraw, int maxy) {
   
         BYTE    *p;          BYTE    *p;
Line 25  static void SCRNCALL SDSYM(p_0)(SDRAW sd Line 25  static void SCRNCALL SDSYM(p_0)(SDRAW sd
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text or grph 1プレーン / 32bit色  // text or grph 1プレーン
 static void SCRNCALL SDSYM(p_1)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_1)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 53  const BYTE *p; Line 53  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + grph / 32bit色  // text + grph
 static void SCRNCALL SDSYM(p_2)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_2)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 85  const BYTE *q; Line 85  const BYTE *q;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + (grph:interleave) / 32bit色  // text + (grph:interleave)
 static void SCRNCALL SDSYM(p_ti)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_ti)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 124  const BYTE *p; Line 124  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // grph:interleave / 32bit色  // grph:interleave
 static void SCRNCALL SDSYM(p_gi)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_gi)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 148  const BYTE *p; Line 148  const BYTE *p;
   
                 if (sdraw->dirty[y+1]) {                  if (sdraw->dirty[y+1]) {
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 *(UINT32 *)q = np2_pal32[NP2PAL_TEXT].d;                                  SDSETPIXEL(q, NP2PAL_TEXT);
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                         }                          }
                         q -= sdraw->xbytes;                          q -= sdraw->xbytes;
Line 163  const BYTE *p; Line 163  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + grph:interleave / 32bit色  // text + grph:interleave
 static void SCRNCALL SDSYM(p_2i)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_2i)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 206  const BYTE *q; Line 206  const BYTE *q;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 //      grph:interleave ex / 32bit色  //      grph:interleave ex
 static void SCRNCALL SDSYM(p_gie)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_gie)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 245  const BYTE *p; Line 245  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 //      text + grph:interleave ex / 32bit色  //      text + grph:interleave ex
 static void SCRNCALL SDSYM(p_2ie)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(p_2ie)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 261  const BYTE *q; Line 261  const BYTE *q;
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                           sdraw->dirty[y+1] |= 0xff;
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 SDSETPIXEL(r, p[x] + q[x] + NP2PAL_GRPH);                                  SDSETPIXEL(r, p[x] + q[x] + NP2PAL_GRPH);
                                 r += sdraw->xalign;                                  r += sdraw->xalign;
Line 303  static const SDRAWFN SDSYM(p)[] = { Line 304  static const SDRAWFN SDSYM(p)[] = {
   
 #ifdef SUPPORT_NORMALDISP  #ifdef SUPPORT_NORMALDISP
   
 // vram off / 32bit色  // vram off
 static void SCRNCALL SDSYM(n_0)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_0)(SDRAW sdraw, int maxy) {
   
         BYTE    *p;          BYTE    *p;
Line 328  static void SCRNCALL SDSYM(n_0)(SDRAW sd Line 329  static void SCRNCALL SDSYM(n_0)(SDRAW sd
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text 1プレーン / 32bit色  // text 1プレーン
 static void SCRNCALL SDSYM(n_t)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_t)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 357  const BYTE *p; Line 358  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // grph 1プレーン / 32bit色  // grph 1プレーン
 static void SCRNCALL SDSYM(n_g)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_g)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 386  const BYTE *p; Line 387  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + grph / 32bit色  // text + grph
 static void SCRNCALL SDSYM(n_2)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_2)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 401  const BYTE *q; Line 402  const BYTE *q;
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                         SDSETPIXEL(r, q[0] + NP2PAL_GRPH);                          SDSETPIXEL(r, q[0] + NP2PAL_GRPH);                      // !!
                         r += sdraw->xalign;                          r += sdraw->xalign;
                         for (x=1; x<sdraw->width; x++) {                          for (x=1; x<sdraw->width; x++) {
                                 SDSETPIXEL(r, p[x-1] + q[x] + NP2PAL_GRPH);                                  SDSETPIXEL(r, p[x-1] + q[x] + NP2PAL_GRPH);
Line 421  const BYTE *q; Line 422  const BYTE *q;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + (grph:interleave) / 32bit色  // text + (grph:interleave)
 static void SCRNCALL SDSYM(n_ti)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_ti)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 466  const BYTE *p; Line 467  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // grph:interleave / 32bit色  // grph:interleave
 static void SCRNCALL SDSYM(n_gi)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_gi)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 507  const BYTE *p; Line 508  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 // text + grph:interleave / 32bit色  // text + grph:interleave
 static void SCRNCALL SDSYM(n_2i)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_2i)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 557  const BYTE *q; Line 558  const BYTE *q;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 //      grph:interleave ex / 32bit色  //      grph:interleave ex
 static void SCRNCALL SDSYM(n_gie)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_gie)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;
Line 598  const BYTE *p; Line 599  const BYTE *p;
         sdraw->y = y;          sdraw->y = y;
 }  }
   
 //      text + grph:interleave ex / 32bit色  //      text + grph:interleave ex
 static void SCRNCALL SDSYM(n_2ie)(SDRAW sdraw, int maxy) {  static void SCRNCALL SDSYM(n_2ie)(SDRAW sdraw, int maxy) {
   
 const BYTE      *p;  const BYTE      *p;

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


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