Diff for /np2/generic/cmndraw.h between versions 1.3 and 1.6

version 1.3, 2004/03/10 02:42:51 version 1.6, 2004/04/05 09:45:06
Line 16  typedef struct { Line 16  typedef struct {
         UINT8   padding;          UINT8   padding;
         UINT16  pal16;          UINT16  pal16;
         RGB32   pal32;          RGB32   pal32;
   } CMNPALS;
   
   typedef union {
           RGB32   pal32;
           UINT16  pal16;
           UINT8   pal8;
 } CMNPAL;  } CMNPAL;
   
 typedef struct {  typedef struct {
Line 27  typedef struct { Line 33  typedef struct {
         int             bpp;          int             bpp;
 } CMNVRAM;  } CMNVRAM;
   
   typedef void (*CMNPALCNV)(CMNPAL *dst, const RGB32 *src, UINT pals, UINT bpp);
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
   
 void cmndraw_getpals(CMNPALFN *fn, CMNPAL *pal, UINT pals);  void cmndraw_getpals(CMNPALFN *fn, CMNPALS *pal, UINT pals);
 void cmndraw_makegrad(RGB32 *pal, int pals, RGB32 bg, RGB32 fg);  void cmndraw_makegrad(RGB32 *pal, int pals, RGB32 bg, RGB32 fg);
   
 #if defined(SUPPORT_8BPP)  #if defined(SUPPORT_8BPP)
Line 73  void cmndraw32_setpat(const CMNVRAM *vra Line 81  void cmndraw32_setpat(const CMNVRAM *vra
   
 // ----  // ----
   
 void cmddraw_fill(CMNVRAM *vram, int x, int y, int cx, int cy, CMNPAL *pal);  void cmddraw_fill(CMNVRAM *vram, int x, int y, int cx, int cy, CMNPALS *pal);
 void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL *pal);  
   void cmndraw_fill2(const CMNVRAM *vram, int x, int y,
                                                                                   int cx, int cy, CMNPAL fg);
   void cmndraw_setfg2(const CMNVRAM *vram, const BYTE *src,
                                                                                   int x, int y, CMNPAL fg);
   void cmndraw_setpat2(const CMNVRAM *vram, const BYTE *src,
                                                                                   int x, int y, CMNPAL bg, CMNPAL fg);
   void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL fg);
   
   // ----
   
   enum {
           CMNBMP_LEFT             = 0x00,
           CMNBMP_CENTER   = 0x01,
           CMNBMP_RIGHT    = 0x02,
           CMNBMP_TOP              = 0x00,
           CMNBMP_MIDDLE   = 0x04,
           CMNBMP_BOTTOM   = 0x08
   };
   
   typedef struct {
           BYTE    *ptr;
           int             width;
           int             height;
           int             align;
           UINT    pals;
           RGB32   paltbl[16];
   } CMNBMP;
   
   BOOL cmndraw_bmp4inf(CMNBMP *bmp, const void *ptr);
   void cmndraw_bmp16(CMNVRAM *vram, const void *ptr, CMNPALCNV cnv, UINT flag);
   
 #ifdef __cplusplus  #ifdef __cplusplus
 }  }

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


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