diff options
Diffstat (limited to 'src/poweruphax.S')
-rw-r--r-- | src/poweruphax.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/poweruphax.S b/src/poweruphax.S index 4931906..e2517e7 100644 --- a/src/poweruphax.S +++ b/src/poweruphax.S @@ -1137,6 +1137,7 @@ SILayoutGroupParams: .extern getPanes__Q23m2d13EmbedLayout_cCFPPCcPPQ34nw4r3lyt4Panei .extern getPictures__Q23m2d13EmbedLayout_cCFPPCcPPQ34nw4r3lyt7Picturei .extern ContinueFromSILayoutExtraStuffs +.extern IsWideScreen__Fv .global SILayoutExtraStuffs SILayoutExtraStuffs: addi r3, r30, 0x74 @@ -1160,6 +1161,17 @@ SILayoutExtraStuffs: li r6, 8 bl getPictures__Q23m2d13EmbedLayout_cCFPPCcPPQ34nw4r3lyt7Picturei + bl IsWideScreen__Fv + cmpwi r3, 1 + beq dontScaleDownSI + lis r3, float0_85@h + ori r3, r3, float0_85@l + lfs f1, 0(r3) + lwz r3, 0x248(r30) + stfs f1, 0x44(r3) + stfs f1, 0x48(r3) +dontScaleDownSI: + li r3, 1 b ContinueFromSILayoutExtraStuffs @@ -1432,6 +1444,7 @@ DontUpdateSIS: .data .align 4 ptrToTwo: .long 2 +float0_85: .float 0.85 .text .global SkawoHatesMe, SkawoStillHatesMe |