Skip to content

Commit

Permalink
Set SHR Alpha to 255 for maximum compatibility.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
  • Loading branch information
audetto committed Dec 11, 2021
1 parent aa7f327 commit 49d0b75
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 49d0b75

Please sign in to comment.