Skip to content

Commit 6a51bfb

Browse files
committed
prlib/mendereralpha: fix relocations
1 parent 862ad1d commit 6a51bfb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

config/p3.jul12.reloc_addrs.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ rom:0x28C718 symbol:none reloc:MIPS_NONE
161161
// prlib/menderer.cpp: initRenderStripDmaPacket
162162
rom:0x28C7C4 symbol:none reloc:MIPS_NONE
163163

164+
// prlib/mendereralpha.cpp: PrInitializeAlphaModulation
165+
rom:0x50D8C symbol:alphaWeight reloc:MIPS_HI16
166+
rom:0x50D94 symbol:mendererDeltaRotation reloc:MIPS_HI16
167+
rom:0x50E74 symbol:mendererDeltaRotation reloc:MIPS_LO16
168+
rom:0x50E30 symbol:alphaWeight reloc:MIPS_LO16
169+
164170
// prlib/mendereralpha.cpp: mendererDrawCopyData
165171
rom:0x28CD00 symbol:none reloc:MIPS_NONE
166172
rom:0x28CD50 symbol:none reloc:MIPS_NONE

config/p3.jul12.symbol_addrs.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,9 @@ PrInitializeAlphaModulation__Fv
21452145
PrCreateAlphaModulation__Ff = 0x00150f88; // type:func
21462146
PrBlendNoodleImage__Fb = 0x001510d8; // type:func
21472147

2148+
mendererDeltaRotation = 0x01c83bd0; // type:f32 size:0x1c
2149+
alphaWeight = 0x01c83bf0; // type:f32 size:0x1c
2150+
21482151
// prlib/mendererdata.cpp
21492152
SetNextTarget__FP20PrNoodlePositionData = 0x00151270; // type:func
21502153
InitializeNoodlePositionData__Fv = 0x00151490; // type:func

src/os/tim2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ int MODE_TR_P(int mode, int ws, int hs) {
240240
rsize *= 3;
241241
}
242242
if (mode == 3) {
243-
rsize <<= 2;
243+
rsize *= 4;
244244
}
245245
if (mode == 4) {
246246
rsize /= 2;

0 commit comments

Comments
 (0)