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

version 1.2, 2003/10/17 07:17:20 version 1.4, 2004/01/22 01:10:04
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 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 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);

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


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