clear left 2 pixel

This commit is contained in:
Thomas Jentzsch 2019-08-03 16:06:22 +02:00
parent 6744d3a45a
commit 0135c873a4
1 changed files with 11 additions and 3 deletions

View File

@ -129,9 +129,13 @@ void AtariNTSC::renderThread(const uInt8* atari_in, const uInt32 in_width,
{
const uInt8* line_in = atari_in;
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;
// shift right by 2 pixel
line_out[0] = line_out[1] = 0;
line_out += 2;
for(uInt32 n = chunk_count; n; --n)
{
// 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;
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;
// shift right by 2 pixel
line_out[0] = line_out[1] = 0;
line_out += 2;
for(uInt32 n = chunk_count; n; --n)
{
// 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]);
++bufofs;
}
// finish final pixels
// finish final 565 % 8 = 5 pixels
/*rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);
++bufofs;
rgb_in[bufofs] = getRGBPhosphor(out[bufofs], rgb_in[bufofs]);