Diff for /np2/vram/scrnbmp.c between versions 1.5 and 1.7

version 1.5, 2004/06/18 07:42:13 version 1.7, 2004/06/21 15:19:15
Line 97  SCRNBMP scrnbmp(void) { Line 97  SCRNBMP scrnbmp(void) {
         PALNUM  *s;          PALNUM  *s;
         UINT    pals;          UINT    pals;
         BMPPAL  pal[NP2PAL_TOTAL];          BMPPAL  pal[NP2PAL_TOTAL];
         UINT8   remap[NP2PAL_TOTAL];          PALNUM  remap[NP2PAL_TOTAL];
         UINT8   remapflg[NP2PAL_TOTAL];          UINT8   remapflg[NP2PAL_TOTAL];
         int             x;          int             x;
         int             y;          int             y;
Line 186  SCRNBMP scrnbmp(void) { Line 186  SCRNBMP scrnbmp(void) {
                 s += SURFACE_WIDTH;                  s += SURFACE_WIDTH;
         }          }
   
         if (pals < 2) {          if (pals <= 2) {
                 type = SCRNBMP_1BIT;                  type = SCRNBMP_1BIT;
                 bd.bpp = 1;                  bd.bpp = 1;
                 palsize = 4 << 1;                  palsize = 4 << 1;
         }          }
         else if (pals < 16) {          else if (pals <= 16) {
                 type = SCRNBMP_4BIT;                  type = SCRNBMP_4BIT;
                 bd.bpp = 4;                  bd.bpp = 4;
                 palsize = 4 << 4;                  palsize = 4 << 4;
         }          }
         else if (pals < 256) {          else if (pals <= 256) {
                 type = SCRNBMP_8BIT;                  type = SCRNBMP_8BIT;
                 bd.bpp = 8;                  bd.bpp = 8;
                 palsize = 4 << 8;                  palsize = 4 << 8;
Line 236  SCRNBMP scrnbmp(void) { Line 236  SCRNBMP scrnbmp(void) {
                 switch(type) {                  switch(type) {
                         case SCRNBMP_1BIT:                          case SCRNBMP_1BIT:
                                 for (x=0; x<bd.width; x++) {                                  for (x=0; x<bd.width; x++) {
                                         if (s[x*2+0]) {                                          if (s[x]) {
                                                 q[x >> 3] |= 0x80 >> (x & 7);                                                  q[x >> 3] |= 0x80 >> (x & 7);
                                         }                                          }
                                 }                                  }

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


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