kode54's patch to kill 16->32bpp LUT
Related change causing Linux to not init that table anymore
This commit is contained in:
@@ -33,7 +33,6 @@ extern void LinuxExit();
|
|||||||
|
|
||||||
extern unsigned int vidbuffer;
|
extern unsigned int vidbuffer;
|
||||||
extern DWORD converta;
|
extern DWORD converta;
|
||||||
extern unsigned int BitConv32Ptr;
|
|
||||||
extern unsigned char curblank;
|
extern unsigned char curblank;
|
||||||
void UpdateVFrame(void);
|
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;
|
Uint32 flags = SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWPALETTE;
|
||||||
DWORD GBitMask;
|
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);
|
flags |= (FullScreen ? SDL_FULLSCREEN : 0);
|
||||||
|
|
||||||
SurfaceX = width; SurfaceY = height;
|
SurfaceX = width; SurfaceY = height;
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ void Grab_PNG_Data(void)
|
|||||||
/*Set scanline width for 32-bit color data: 4*256 = 1024*/
|
/*Set scanline width for 32-bit color data: 4*256 = 1024*/
|
||||||
int scanline=1024;
|
int scanline=1024;
|
||||||
unsigned char *DIBits;
|
unsigned char *DIBits;
|
||||||
unsigned int * lookup32=(unsigned int *)BitConv32Ptr;
|
|
||||||
unsigned int * DBits;
|
unsigned int * DBits;
|
||||||
|
|
||||||
filename = generate_filename();
|
filename = generate_filename();
|
||||||
@@ -217,13 +216,9 @@ void Grab_PNG_Data(void)
|
|||||||
{
|
{
|
||||||
|
|
||||||
conv_pixel=pixel[(i*288)+j+16];
|
conv_pixel=pixel[(i*288)+j+16];
|
||||||
#ifndef __MSDOS__
|
DBits[i*256+j]=((conv_pixel&0xF800)<<8)|
|
||||||
DBits[i*256+j]=lookup32[conv_pixel];
|
((conv_pixel&0x07E0)<<5)|
|
||||||
#else
|
((conv_pixel&0x001F)<<3)|0xFF000000;
|
||||||
DBits[i*256+j]=((conv_pixel&0xF800)<<8)+
|
|
||||||
((conv_pixel&0x07E0)<<5)+
|
|
||||||
((conv_pixel&0x001F)<<3)+0xFF000000;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user