Diff for /np2/vram/sdraw.mcr between versions 1.3 and 1.5

version 1.3, 2003/10/25 19:10:37 version 1.5, 2004/01/31 20:05:24
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 315  static void SCRNCALL SDSYM(n_0)(SDRAW sd Line 315  static void SCRNCALL SDSYM(n_0)(SDRAW sd
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                           SDSETPIXEL(p, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 SDSETPIXEL(p, NP2PAL_TEXT2);  
                                 p += sdraw->xalign;                                  p += sdraw->xalign;
                                   SDSETPIXEL(p, NP2PAL_TEXT2);
                         }                          }
                         SDSETPIXEL(p, NP2PAL_TEXT2);  
                         p -= sdraw->xbytes;                          p -= sdraw->xbytes;
                 }                  }
                 p += sdraw->yalign;                  p += sdraw->yalign;
Line 342  const BYTE *p; Line 342  const BYTE *p;
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                         for (x=0; x<sdraw->width; x++) {                          SDSETPIXEL(q, p[0] + NP2PAL_TEXT3);
                           q += sdraw->xalign;
                           for (x=1; x<sdraw->width; x++) {
                                 SDSETPIXEL(q, p[x] + NP2PAL_GRPH);                                  SDSETPIXEL(q, p[x] + NP2PAL_GRPH);
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                         }                          }
Line 371  const BYTE *p; Line 373  const BYTE *p;
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                         SDSETPIXEL(q, NP2PAL_TEXT2);                          SDSETPIXEL(q, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                                 SDSETPIXEL(q, p[x] + NP2PAL_GRPH);                                  SDSETPIXEL(q, p[x] + NP2PAL_GRPH);
Line 402  const BYTE *q; Line 404  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] >> 4) + NP2PAL_TEXT3);
                         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 480  const BYTE *p; Line 482  const BYTE *p;
         y = sdraw->y;          y = sdraw->y;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                         SDSETPIXEL(q, 0);                          SDSETPIXEL(q, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                                 SDSETPIXEL(q, p[x] + NP2PAL_GRPH);                                  SDSETPIXEL(q, p[x] + NP2PAL_GRPH);
Line 491  const BYTE *p; Line 493  const BYTE *p;
                 q += sdraw->yalign;                  q += sdraw->yalign;
   
                 if (sdraw->dirty[y+1]) {                  if (sdraw->dirty[y+1]) {
                         SDSETPIXEL(q, NP2PAL_TEXT);                          SDSETPIXEL(q, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                                 SDSETPIXEL(q, NP2PAL_TEXT);                                  SDSETPIXEL(q, NP2PAL_TEXT);
Line 572  const BYTE *p; Line 574  const BYTE *p;
         do {          do {
                 if (sdraw->dirty[y]) {                  if (sdraw->dirty[y]) {
                         sdraw->dirty[y+1] |= 0xff;                          sdraw->dirty[y+1] |= 0xff;
                         SDSETPIXEL(q, 0);                          SDSETPIXEL(q, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 q += sdraw->xalign;                                  q += sdraw->xalign;
                                 SDSETPIXEL(q, p[x] + NP2PAL_GRPH);                                  SDSETPIXEL(q, p[x] + NP2PAL_GRPH);
Line 582  const BYTE *p; Line 584  const BYTE *p;
                 q += sdraw->yalign;                  q += sdraw->yalign;
   
                 if (sdraw->dirty[y+1]) {                  if (sdraw->dirty[y+1]) {
                         SDSETPIXEL(q, 0);                          SDSETPIXEL(q, NP2PAL_TEXT3);
                         for (x=0; x<sdraw->width; x++) {                          for (x=0; x<sdraw->width; x++) {
                                 SDSETPIXEL(q, p[x] + NP2PAL_SKIP);                                  SDSETPIXEL(q, p[x] + NP2PAL_SKIP);
                                 q += sdraw->xalign;                                  q += sdraw->xalign;

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


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