mirror of https://github.com/stella-emu/stella.git
clear left 2 pixel
This commit is contained in:
parent
8da53e05b6
commit
8b7248dc56
|
@ -129,9 +129,13 @@ void AtariNTSC::renderThread(const uInt8* atari_in, const uInt32 in_width,
|
||||||
{
|
{
|
||||||
const uInt8* line_in = atari_in;
|
const uInt8* line_in = atari_in;
|
||||||
ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]);
|
ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]);
|
||||||
uInt32* restrict line_out = static_cast<uInt32*>(rgb_out) + 2; // shift right by 2 pixel
|
uInt32* restrict line_out = static_cast<uInt32*>(rgb_out);
|
||||||
++line_in;
|
++line_in;
|
||||||
|
|
||||||
|
// shift right by 2 pixel
|
||||||
|
line_out[0] = line_out[1] = 0;
|
||||||
|
line_out += 2;
|
||||||
|
|
||||||
for(uInt32 n = chunk_count; n; --n)
|
for(uInt32 n = chunk_count; n; --n)
|
||||||
{
|
{
|
||||||
// order of input and output pixels must not be altered
|
// order of input and output pixels must not be altered
|
||||||
|
@ -202,9 +206,13 @@ void AtariNTSC::renderWithPhosphorThread(const uInt8* atari_in, const uInt32 in_
|
||||||
{
|
{
|
||||||
const uInt8* line_in = atari_in;
|
const uInt8* line_in = atari_in;
|
||||||
ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]);
|
ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]);
|
||||||
uInt32* restrict line_out = static_cast<uInt32*>(rgb_out) + 2; // shift right by 2 pixel
|
uInt32* restrict line_out = static_cast<uInt32*>(rgb_out);
|
||||||
++line_in;
|
++line_in;
|
||||||
|
|
||||||
|
// shift right by 2 pixel
|
||||||
|
line_out[0] = line_out[1] = 0;
|
||||||
|
line_out += 2;
|
||||||
|
|
||||||
for(uInt32 n = chunk_count; n; --n)
|
for(uInt32 n = chunk_count; n; --n)
|
||||||
{
|
{
|
||||||
// order of input and output pixels must not be altered
|
// order of input and output pixels must not be altered
|
||||||
|
@ -274,7 +282,7 @@ void AtariNTSC::renderWithPhosphorThread(const uInt8* atari_in, const uInt32 in_
|
||||||
rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
||||||
++bufofs;
|
++bufofs;
|
||||||
}
|
}
|
||||||
// finish final pixels
|
// finish final 565 % 8 = 5 pixels
|
||||||
/*rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
/*rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
||||||
++bufofs;
|
++bufofs;
|
||||||
rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
|
||||||
|
|
Loading…
Reference in New Issue