Diff for /np2/generic/cmndraw.c between versions 1.10 and 1.11

version 1.10, 2004/04/09 10:52:20 version 1.11, 2005/02/07 14:46:10
Line 30  void cmndraw_makegrad(RGB32 *pal, int pa Line 30  void cmndraw_makegrad(RGB32 *pal, int pa
 void cmndraw_fill(const CMNVRAM *vram, int x, int y,  void cmndraw_fill(const CMNVRAM *vram, int x, int y,
                                                                                 int cx, int cy, CMNPAL fg) {                                                                                  int cx, int cy, CMNPAL fg) {
   
         BYTE    *p;          UINT8   *p;
         int             dalign;          int             dalign;
         int             r;          int             r;
   
Line 93  void cmndraw_fill(const CMNVRAM *vram, i Line 93  void cmndraw_fill(const CMNVRAM *vram, i
         }          }
 }  }
   
 void cmndraw_setfg(const CMNVRAM *vram, const BYTE *src,  void cmndraw_setfg(const CMNVRAM *vram, const UINT8 *src,
                                                                                 int x, int y, CMNPAL fg) {                                                                                  int x, int y, CMNPAL fg) {
   
 const BYTE      *p;  const UINT8     *p;
         BYTE    *q;          UINT8   *q;
         BYTE    cy;          UINT8   cy;
         int             dalign;          int             dalign;
         BYTE    c;          UINT8   c;
         BYTE    bit;          UINT8   bit;
         BYTE    cx;          UINT8   cx;
   
         if (vram == NULL) {          if (vram == NULL) {
                 return;                  return;
Line 183  const BYTE *p; Line 183  const BYTE *p;
         } while(--cy);          } while(--cy);
 }  }
   
 void cmndraw_setpat(const CMNVRAM *vram, const BYTE *src,  void cmndraw_setpat(const CMNVRAM *vram, const UINT8 *src,
                                                                                 int x, int y, CMNPAL bg, CMNPAL fg) {                                                                                  int x, int y, CMNPAL bg, CMNPAL fg) {
   
 const BYTE      *p;  const UINT8     *p;
         BYTE    *q;          UINT8   *q;
         BYTE    cy;          UINT8   cy;
         int             dalign;          int             dalign;
         BYTE    c;          UINT8   c;
         BYTE    bit;          UINT8   bit;
         BYTE    cx;          UINT8   cx;
   
         p = src + 2;          p = src + 2;
         q = vram->ptr + (x * vram->xalign) + (y * vram->yalign);          q = vram->ptr + (x * vram->xalign) + (y * vram->yalign);
Line 290  const BYTE *p; Line 290  const BYTE *p;
 void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL fg) {  void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL fg) {
   
         UINT    s;          UINT    s;
 const BYTE      *ptr;  const UINT8     *ptr;
         BYTE    src[10];          UINT8   src[10];
   
         if ((vram == NULL) || (str == NULL)) {          if ((vram == NULL) || (str == NULL)) {
                 return;                  return;
Line 324  BOOL cmndraw_bmp4inf(CMNBMP *bmp, const  Line 324  BOOL cmndraw_bmp4inf(CMNBMP *bmp, const 
   
 const BMPFILE   *bf;  const BMPFILE   *bf;
 const BMPINFO   *bi;  const BMPINFO   *bi;
 const BYTE              *palptr;  const UINT8             *palptr;
         BMPDATA         inf;          BMPDATA         inf;
         BYTE            *src;          UINT8           *src;
         int                     bmpalign;          int                     bmpalign;
         UINT            pals;          UINT            pals;
         UINT            c;          UINT            c;
Line 336  const BYTE  *palptr; Line 336  const BYTE  *palptr;
         }          }
         bf = (BMPFILE *)ptr;          bf = (BMPFILE *)ptr;
         bi = (BMPINFO *)(bf + 1);          bi = (BMPINFO *)(bf + 1);
         palptr = (BYTE *)(bi + 1);          palptr = (UINT8 *)(bi + 1);
         if (((bf->bfType[0] != 'B') && (bf->bfType[1] != 'M')) ||          if (((bf->bfType[0] != 'B') && (bf->bfType[1] != 'M')) ||
                 (bmpdata_getinfo(bi, &inf) != SUCCESS) || (inf.bpp != 4)) {                  (bmpdata_getinfo(bi, &inf) != SUCCESS) || (inf.bpp != 4)) {
                 return(FAILURE);                  return(FAILURE);
         }          }
         pals = min(LOADINTELDWORD(bi->biClrUsed), 16);          pals = min(LOADINTELDWORD(bi->biClrUsed), 16);
   
         src = (BYTE *)bf + (LOADINTELDWORD(bf->bfOffBits));          src = (UINT8 *)bf + (LOADINTELDWORD(bf->bfOffBits));
         bmpalign = bmpdata_getalign(bi);          bmpalign = bmpdata_getalign(bi);
         if (inf.height > 0) {          if (inf.height > 0) {
                 bmp->ptr = src + ((inf.height - 1) * bmpalign);                  bmp->ptr = src + ((inf.height - 1) * bmpalign);
Line 371  void cmndraw_bmp16(CMNVRAM *vram, const  Line 371  void cmndraw_bmp16(CMNVRAM *vram, const 
   
         CMNBMP  bmp;          CMNBMP  bmp;
         CMNPAL  pal[16];          CMNPAL  pal[16];
         BYTE    *src;          UINT8   *src;
         BYTE    *dst;          UINT8   *dst;
         int             yalign;          int             yalign;
         int             x;          int             x;
         int             y;          int             y;

Removed from v.1.10  
changed lines
  Added in v.1.11


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