Skip to content

Commit

Permalink
J2D: Fix J2DScreen default alpha to 0xFF
Browse files Browse the repository at this point in the history
  • Loading branch information
themikelester committed Jan 1, 2025
1 parent 4afc290 commit 04f5353
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Common/JSYSTEM/J2Dv1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 0 additions & 1 deletion src/ZeldaWindWaker/d_a.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')!;
Expand Down

0 comments on commit 04f5353

Please sign in to comment.