diff --git a/trunk/src/drivers/common/vidblit.cpp b/trunk/src/drivers/common/vidblit.cpp index 740d8b2b..c79657ca 100644 --- a/trunk/src/drivers/common/vidblit.cpp +++ b/trunk/src/drivers/common/vidblit.cpp @@ -51,8 +51,8 @@ static uint8 *ntscblit = NULL; // For nes_ntsc static uint32 *prescalebuf = NULL; // Prescale pointresizes to 2x-4x to allow less blur with hardware acceleration. static uint32 *palrgb = NULL; // PAL filter buffer for lookup values of RGB with applied moir phases static float *moire = NULL; -int palsaturation = 100; -int palnotch = 0; +int palsaturation = 200; +int palnotch = 64; bool palhdtv = 0; bool palmonochrome = 0; bool palupdate = 1; @@ -186,7 +186,7 @@ int InitBlitToHigh(int b, uint32 rmask, uint32 gmask, uint32 bmask, int efx, int else if (specfilt == 9) { palrgb = (uint32 *)FCEU_dmalloc((256+512)*16*sizeof(uint32)); - moire = (float *)FCEU_dmalloc( 16*sizeof(float)); + moire = (float *)FCEU_dmalloc( 16*sizeof(float)); } silt = specfilt; @@ -644,28 +644,41 @@ void Blit8ToHigh(uint8 *src, uint8 *dest, int xr, int yr, int pitch, int xscale, uint8 xabs = 0; uint32 index = 0; uint32 lastindex = 0; - uint32 lastindex2 = 0; - uint32 color, lastcolor, lastcolor2; + uint32 newindex = 0; + uint32 color, lastcolor, realcolor; int notch = palnotch; - int notch2 = notch/2; int unnotch = 100 - palnotch; int rmask = 0xff0000; int gmask = 0x00ff00; int bmask = 0x0000ff; + int r, g, b; for (y=0; y