Diff for /np2/vram/palettes.c between versions 1.2 and 1.4

version 1.2, 2003/10/17 11:10:02 version 1.4, 2004/02/19 03:04:02
Line 8 Line 8
   
                 RGB32           np2_pal32[256];                  RGB32           np2_pal32[256];
 #if defined(SUPPORT_16BPP)  #if defined(SUPPORT_16BPP)
                 UINT16          np2_pal16[256];                  RGB16           np2_pal16[256];
 #endif  #endif
                 PALEVENT        palevent;                  PALEVENT        palevent;
 static  RGB32           degpal1[8];  static  RGB32           degpal1[8];
 static  RGB32           degpal2[8];  static  RGB32           degpal2[8];
 static  BYTE            anapal1[16];  static  UINT8           anapal1[16];
 static  BYTE            anapal2[16];  static  UINT8           anapal2[16];
   
 static  RGB32           lcdpal[15];  static  RGB32           lcdpal[15];
 static  BYTE            lcdtbl[0x1000];  static  UINT8           lcdtbl[0x1000];
                 BYTE            pal_monotable[16] = {0, 0, 0, 0, 1, 1, 1, 1,                  UINT8           pal_monotable[16] = {0, 0, 0, 0, 1, 1, 1, 1,
                                                                                         0, 0, 0, 0, 1, 1, 1, 1};                                                                                          0, 0, 0, 0, 1, 1, 1, 1};
   
 static const BYTE lcdpal_a[27] = {0, 1, 2, 3, 5, 2, 4, 4, 6,  static const UINT8 lcdpal_a[27] = {     0, 1, 2, 3, 5, 2, 4, 4, 6,
                                                                         7, 9, 2,11,13, 2, 4, 4, 6,                                                                          7, 9, 2,11,13, 2, 4, 4, 6,
                                                                         8, 8,10, 8, 8,10,12,12,14};                                                                          8, 8,10, 8, 8,10,12,12,14};
 static const BYTE deftbl[4] = {0x04, 0x15, 0x26, 0x37};  static const UINT8 deftbl[4] = {0x04, 0x15, 0x26, 0x37};
   
   
 void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg) {  void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg) {
Line 94  void pal_makeskiptable(void) { Line 94  void pal_makeskiptable(void) {
   
         int             i;          int             i;
         RGB32   pal;          RGB32   pal;
           UINT8   ana;
   
         for (i=0; i<8; i++) {          for (i=0; i<8; i++) {
                 pal.p.b = (BYTE)(i & 1);                  pal.p.b = (BYTE)(i & 1);
Line 104  void pal_makeskiptable(void) { Line 105  void pal_makeskiptable(void) {
                 degpal2[i].d = pal.d * np2cfg.skiplight;                  degpal2[i].d = pal.d * np2cfg.skiplight;
         }          }
         for (i=0; i<16; i++) {          for (i=0; i<16; i++) {
                 anapal1[i] = (BYTE)(i * 0x11);                  ana = (UINT8)(i * 0x11);
                 anapal2[i] = (BYTE)((np2cfg.skiplight * anapal1[i]) / 255);                  anapal1[i] = ana;
                   anapal2[i] = (UINT8)((np2cfg.skiplight * anapal1[i]) / 255);
         }          }
 }  }
   
Line 218  static void pal_makedegital_lcd(const BY Line 220  static void pal_makedegital_lcd(const BY
         UINT    i;          UINT    i;
         UINT32  pal32;          UINT32  pal32;
 #if defined(SUPPORT_16BPP)  #if defined(SUPPORT_16BPP)
         UINT16  pal16;          RGB16   pal16;
 #endif  #endif
   
         for (i=0; i<4; i++) {          for (i=0; i<4; i++) {
Line 267  static void pal_maketext(void) { Line 269  static void pal_maketext(void) {
         UINT    j;          UINT    j;
         UINT    k;          UINT    k;
 #if defined(SUPPORT_16BPP)  #if defined(SUPPORT_16BPP)
         UINT16  pal16;          RGB16   pal16;
 #endif  #endif
   
         k = NP2PAL_TEXT2;          k = NP2PAL_TEXT2;
Line 301  static void pal_maketext_lcd(void) { Line 303  static void pal_maketext_lcd(void) {
         UINT    j;          UINT    j;
         UINT    k;          UINT    k;
 #if defined(SUPPORT_16BPP)  #if defined(SUPPORT_16BPP)
         UINT16  pal16;          RGB16   pal16;
 #endif  #endif
   
         k = NP2PAL_TEXT2;          k = NP2PAL_TEXT2;

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


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