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
2 changed files with 3 additions and 1 deletions
+2 -1
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