Skip to content

Commit

Permalink
Set SHR alpha channel to 255 for consistency with other video modes. …
Browse files Browse the repository at this point in the history
  • Loading branch information
audetto committed Dec 11, 2021
1 parent 1670e0d commit a07ba4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/VidHD.cpp
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion source/Video.cpp
Expand Up @@ -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
Expand Down

0 comments on commit a07ba4a

Please sign in to comment.