From 9b30de557174ed37f871e06291ece4935b29892a Mon Sep 17 00:00:00 2001 From: Lee Lup Yuen Date: Sun, 6 Nov 2022 21:07:29 +0800 Subject: [PATCH] Clean up DE Render --- render.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/render.zig b/render.zig index 24a00f5..810a822 100644 --- a/render.zig +++ b/render.zig @@ -497,6 +497,11 @@ fn initUiChannel( else => unreachable, } << 8; // Bits 8 to 12 + // LAY_ALPHA_MODE (Bits 1 to 2) = 2 + // (Global Alpha is mixed with Pixel Alpha) + // (Input Alpha Value = Global Alpha Value * Pixel’s Alpha Value) + // LAY_EN (Bit 0) = 1 (Enable Layer) + _ = LAY_GLBALPHA; _ = LAY_FBFMT;