Bug fix for NTSC 2x and PAL special scalers with 8px side clipping active.
This commit is contained in:
parent
4ab45b82d8
commit
68e43eeb6b
|
@ -437,7 +437,7 @@ void
|
||||||
BlitScreen(uint8 *XBuf)
|
BlitScreen(uint8 *XBuf)
|
||||||
{
|
{
|
||||||
uint8 *dest;
|
uint8 *dest;
|
||||||
int w, h, pitch, ixScale, iyScale;
|
int w, h, pitch, bw, ixScale, iyScale;
|
||||||
|
|
||||||
// refresh the palette if required
|
// refresh the palette if required
|
||||||
if (s_paletterefresh)
|
if (s_paletterefresh)
|
||||||
|
@ -456,10 +456,12 @@ BlitScreen(uint8 *XBuf)
|
||||||
if ( s_sponge == 3 )
|
if ( s_sponge == 3 )
|
||||||
{
|
{
|
||||||
w = ixScale*301;
|
w = ixScale*301;
|
||||||
|
bw = 256;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
w = ixScale*NWIDTH;
|
w = ixScale*NWIDTH;
|
||||||
|
bw = NWIDTH;
|
||||||
}
|
}
|
||||||
if ( s_sponge == 9 )
|
if ( s_sponge == 9 )
|
||||||
{
|
{
|
||||||
|
@ -484,7 +486,7 @@ BlitScreen(uint8 *XBuf)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Blit8ToHigh(XBuf + NOFFSET, dest, NWIDTH, s_tlines, pitch, ixScale, iyScale);
|
Blit8ToHigh(XBuf + NOFFSET, dest, bw, s_tlines, pitch, ixScale, iyScale);
|
||||||
}
|
}
|
||||||
nes_shm->blitUpdated = 1;
|
nes_shm->blitUpdated = 1;
|
||||||
|
|
||||||
|
|
|
@ -792,6 +792,7 @@ void Blit8ToHigh(uint8 *src, uint8 *dest, int xr, int yr, int pitch, int xscale,
|
||||||
lastindex = index;
|
lastindex = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
src += (256-xr);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue