Merge branch 'svn/trunk' r4313
This commit is contained in:
commit
34b3549b41
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "inout.h"
|
||||
#include "render.h"
|
||||
#include "vga.h"
|
||||
#include "mem.h"
|
||||
|
||||
/*
|
||||
3C6h (R/W): PEL Mask
|
||||
|
@ -54,8 +55,8 @@ static void VGA_DAC_SendColor( Bitu index, Bitu src ) {
|
|||
const Bit8u red = vga.dac.rgb[src].red;
|
||||
const Bit8u green = vga.dac.rgb[src].green;
|
||||
const Bit8u blue = vga.dac.rgb[src].blue;
|
||||
//Set entry in 16bit output lookup table
|
||||
vga.dac.xlat16[index] = ((blue>>1)&0x1f) | (((green)&0x3f)<<5) | (((red>>1)&0x1f) << 11);
|
||||
//Set entry in (little endian) 16bit output lookup table
|
||||
var_write(&vga.dac.xlat16[index], ((blue>>1)&0x1f) | (((green)&0x3f)<<5) | (((red>>1)&0x1f) << 11));
|
||||
|
||||
RENDER_SetPal( index, (red << 2) | ( red >> 4 ), (green << 2) | ( green >> 4 ), (blue << 2) | ( blue >> 4 ) );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue