kode54's patch to kill 16->32bpp LUT

Related change causing Linux to not init that table anymore
This commit is contained in:
theoddone33
2002-10-02 05:44:12 +00:00
parent d95ecb42c7
commit 343bca53fc
2 changed files with 3 additions and 16 deletions

View File

@@ -33,7 +33,6 @@ extern void LinuxExit();
extern unsigned int vidbuffer;
extern DWORD converta;
extern unsigned int BitConv32Ptr;
extern unsigned char curblank;
void UpdateVFrame(void);
@@ -44,13 +43,6 @@ BOOL sw_start(int width, int height, int req_depth, int FullScreen)
Uint32 flags = SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWPALETTE;
DWORD GBitMask;
p = BitConv32Ptr;
for(i=0; i<65536; i++) {
color32 = ((i&0xF800)<<8) + ((i&0x07E0)<<5) + ((i&0x001F)<<3)+0xFF000000;
(*(unsigned int *)(p)) = color32;
p += 4;
}
flags |= (FullScreen ? SDL_FULLSCREEN : 0);
SurfaceX = width; SurfaceY = height;

View File

@@ -198,7 +198,6 @@ void Grab_PNG_Data(void)
/*Set scanline width for 32-bit color data: 4*256 = 1024*/
int scanline=1024;
unsigned char *DIBits;
unsigned int * lookup32=(unsigned int *)BitConv32Ptr;
unsigned int * DBits;
filename = generate_filename();
@@ -217,13 +216,9 @@ void Grab_PNG_Data(void)
{
conv_pixel=pixel[(i*288)+j+16];
#ifndef __MSDOS__
DBits[i*256+j]=lookup32[conv_pixel];
#else
DBits[i*256+j]=((conv_pixel&0xF800)<<8)+
((conv_pixel&0x07E0)<<5)+
((conv_pixel&0x001F)<<3)+0xFF000000;
#endif
DBits[i*256+j]=((conv_pixel&0xF800)<<8)|
((conv_pixel&0x07E0)<<5)|
((conv_pixel&0x001F)<<3)|0xFF000000;
}
}