From 04f5353911bf934a6c8bd024e87b3c43356933b9 Mon Sep 17 00:00:00 2001 From: Mike Lester Date: Wed, 1 Jan 2025 09:13:12 -0700 Subject: [PATCH] J2D: Fix J2DScreen default alpha to 0xFF --- src/Common/JSYSTEM/J2Dv1.ts | 2 +- src/ZeldaWindWaker/d_a.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Common/JSYSTEM/J2Dv1.ts b/src/Common/JSYSTEM/J2Dv1.ts index 54dde8b9b..1b6687f75 100644 --- a/src/Common/JSYSTEM/J2Dv1.ts +++ b/src/Common/JSYSTEM/J2Dv1.ts @@ -248,7 +248,7 @@ export class BLO { const screen: SCRN = { parent: null, type: 'SCRN', children: [], visible: true, x: 0, y: 0, w: inf1.width, h: inf1.height, color: inf1.color, rot: 0, tag: '', basePos: 0, - alpha: inf1.color.a, inheritAlpha: false, offset: 0, + alpha: 0xFF, inheritAlpha: true, offset: 0, }; let parentStack: (PAN1 | null)[] = [screen]; diff --git a/src/ZeldaWindWaker/d_a.ts b/src/ZeldaWindWaker/d_a.ts index 979d7d04e..180b12df7 100644 --- a/src/ZeldaWindWaker/d_a.ts +++ b/src/ZeldaWindWaker/d_a.ts @@ -5859,7 +5859,6 @@ class d_a_title extends fopAc_ac_c { assert(screenData !== null); this.screen = new J2DScreen(screenData, globals.renderer.renderCache, globals.resCtrl.getResResolver(d_a_title.arcName), J2DAnchorPos.Center); this.screen.color = White; - this.screen.setAlpha(1.0); // TODO: This isn't here originally this.panes[TitlePane.MainTitle] = this.screen.search('zeld')!; this.panes[TitlePane.JapanSubtitle] = this.screen.search('zelj')!;