Set SHR alpha channel to 255 for consistency with other video modes. (PR #1010)

This commit is contained in:
Andrea 2021-12-11 18:05:06 +00:00 committed by GitHub
parent 1670e0dbc0
commit a07ba4ade0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,7 @@ bgra_t ConvertIIgs2RGB(Color color)
rgb.r = color.red * 16;
rgb.g = color.green * 16;
rgb.b = color.blue * 16;
rgb.a = ALPHA;
return rgb;
}

View File

@ -837,7 +837,8 @@ void Video::VideoRefreshBuffer(uint32_t uRedrawWholeScreenVideoMode, bool bRedra
void Video::ClearFrameBuffer(void)
{
memset(GetFrameBuffer(), 0, GetFrameBufferWidth() * GetFrameBufferHeight() * sizeof(bgra_t));
UINT32* frameBuffer = (UINT32*)GetFrameBuffer();
std::fill(frameBuffer, frameBuffer + GetFrameBufferWidth() * GetFrameBufferHeight(), OPAQUE_BLACK);
}
// Called when entering debugger, and after viewing Apple II video screen from debugger