Diff for /np2/generic/cmndraw.h between versions 1.5 and 1.7

version 1.5, 2004/03/25 10:41:13 version 1.7, 2004/04/08 13:51:52
Line 33  typedef struct { Line 33  typedef struct {
         int             bpp;          int             bpp;
 } CMNVRAM;  } CMNVRAM;
   
 typedef void (*CMNPALCNV)(CMNPAL *dst, RGB32 *src, UINT pals, UINT bpp);  typedef void (*CMNPALCNV)(CMNPAL *dst, const RGB32 *src, UINT pals, UINT bpp);
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
Line 42  extern "C" { Line 42  extern "C" {
 void cmndraw_getpals(CMNPALFN *fn, CMNPALS *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)  void cmndraw_fill(const CMNVRAM *vram, int x, int y,
 void cmndraw8_fill(const CMNVRAM *vram, int x, int y,                                                                                  int cx, int cy, CMNPAL fg);
                                                                                 int cx, int cy, BYTE fg);  void cmndraw_setfg(const CMNVRAM *vram, const BYTE *src,
 void cmndraw8_setfg(const CMNVRAM *vram, const BYTE *src,                                                                                  int x, int y, CMNPAL fg);
                                                                                 int x, int y, BYTE fg);  void cmndraw_setpat(const CMNVRAM *vram, const BYTE *src,
 void cmndraw8_setpat(const CMNVRAM *vram, const BYTE *src,                                                                                  int x, int y, CMNPAL bg, CMNPAL fg);
                                                                                 int x, int y, BYTE bg, BYTE fg);  void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL fg);
 #endif  
   
 #if defined(SUPPORT_16BPP)  
 void cmndraw16_fill(const CMNVRAM *vram, int x, int y,  
                                                                                 int cx, int cy, UINT16 fg);  
 void cmndraw16_setfg(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, UINT16 fg);  
 void cmndraw16_setpat(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, UINT16 bg, UINT16 fg);  
 #endif  
   
 #if defined(SUPPORT_24BPP)  
 void cmndraw24_fill(const CMNVRAM *vram, int x, int y,  
                                                                                 int cx, int cy, RGB32 fg);  
 void cmndraw24_setfg(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, RGB32 fg);  
 void cmndraw24_setpat(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, RGB32 bg, RGB32 fg);  
 #endif  
   
 #if defined(SUPPORT_32BPP)  
 void cmndraw32_fill(const CMNVRAM *vram, int x, int y,  
                                                                                 int cx, int cy, RGB32 fg);  
 void cmndraw32_setfg(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, RGB32 fg);  
 void cmndraw32_setpat(const CMNVRAM *vram, const BYTE *src,  
                                                                                 int x, int y, RGB32 bg, RGB32 fg);  
 #endif  
   
   
 // ----  
   
 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, CMNPALS *pal);  
   
   
 // ----  // ----
Line 96  enum { Line 62  enum {
         CMNBMP_BOTTOM   = 0x08          CMNBMP_BOTTOM   = 0x08
 };  };
   
 void cmddraw_bmp16(CMNVRAM *vram, const void *bmp, CMNPALCNV cnv, UINT flag);  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.5  
changed lines
  Added in v.1.7


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