Skip to content

Commit 423304d

Browse files
committed
Adjust transparency handling in mix/overlay + more renderer tests + no OoB in SIMD transparency handling
1 parent c74340b commit 423304d

File tree

6 files changed

+538
-220
lines changed

6 files changed

+538
-220
lines changed

src/CDI/Video/Renderer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Renderer
273273
constexpr Pixel Renderer::backdropCursorColorToPixel(const uint8_t color) noexcept
274274
{
275275
// Background plane has no transparency (Green book V.5.13).
276-
Pixel argb = 0xFF'00'00'00; // Set transparency for cursor plane.
276+
Pixel argb = 0xFF'00'00'00; // Background and cursor color pixels are always visible.
277277
const uint8_t c = bit<3>(color) ? Renderer::PIXEL_FULL_INTENSITY : Renderer::PIXEL_HALF_INTENSITY;
278278
if(bit<2>(color)) argb.r = c; // Red.
279279
if(bit<1>(color)) argb.g = c; // Green.

0 commit comments

Comments
 (0)