Diff for /xmil/vram/palettes.h between versions 1.4 and 1.8

version 1.4, 2004/08/07 12:10:27 version 1.8, 2004/08/17 14:46:37
Line 1 Line 1
   
   #define SUPPORT_PALEVENT                1024
   
   #if !defined(SUPPORT_TURBOZ)
   enum {
           XMILPAL_USE             = 64 + 64,
           XMILPAL_MAX             = XMILPAL_USE
   };
   #else
   enum {
           XMILPAL_USE             = 64 + 64 + 8,
           XMILPAL_4096G   = 192,
           XMILPAL_4096T   = XMILPAL_4096G + 4096,
           XMILPAL_MAX             = XMILPAL_4096T + 8
   };
   #endif
   
   
   #if defined(SUPPORT_PALEVENT)
   typedef struct {
           UINT8   rgbp;
           UINT8   value;
           UINT8   reserve[2];
           SINT32  clock;
   } PAL1EVENT;
   
   typedef struct {
           UINT8           rgbp[8];
           UINT            events;
           PAL1EVENT       event[SUPPORT_PALEVENT];
   } PALEVENT;
   #endif
   
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
   
 extern  RGB32   x1n_pal32[256];                 // xm_palette  extern  UINT            xmil_palettes;
 extern  RGB32   x1z_pal32[4096+8];              // GRPHPAL4096  extern  RGB32           xmil_pal32[XMILPAL_MAX];                // xm_palette
   
 #if defined(SUPPORT_16BPP)  #if defined(SUPPORT_16BPP)
 extern  RGB16   x1n_pal16[256];                 // xmil_pal16  extern  RGB16           xmil_pal16[XMILPAL_MAX];
 extern  RGB16   x1z_pal16[4096+8];              // GRPHPAL16bit  #endif
   #if defined(SUPPORT_PALEVENT)
   extern  PALEVENT        palevent;
 #endif  #endif
   
 extern  int             xm_palettes;  
   
 void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg);  void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg);
 void pals_cnv16pal(RGB16 *dst, const RGB32 *src, UINT pals);  
   
   #if defined(SUPPORT_TURBOZ)
 void pal_settext(REG8 num);                                                     // textpalette1  void pal_settext(REG8 num);                                                     // textpalette1
 void pal_setgrph(REG8 bank, REG8 num);                          // grphpalette1  void pal_setgrph(REG8 bank, REG8 num);                          // grphpalette1
 void pal_setgrph4096(UINT num);                                         // grphpal4096  void pal_setgrph4096(UINT num);                                         // grphpal4096
   #endif
   
   void pal_update1(const UINT8 *rgbp);
 void pal_update(void);  void pal_update(void);
   
   #if defined(SUPPORT_PALEVENT)
   void pal_eventclear(void);
   #else
   #define pal_eventclear()
   #endif
   
 void pal_reset(void);  void pal_reset(void);
   
 #ifdef __cplusplus  #ifdef __cplusplus

Removed from v.1.4  
changed lines
  Added in v.1.8


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