diff options
author | Treeki <treeki@gmail.com> | 2013-02-14 02:00:01 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-14 02:00:01 +0100 |
commit | a801c529746fdf3109e657b8f7b01f610c9ab123 (patch) | |
tree | 85692e2f0440f06e99ee352b0077cf9a159cbb73 | |
parent | ac80973ee96dc7d65a8c8b4861a69e8e189c7434 (diff) | |
download | kamek-a801c529746fdf3109e657b8f7b01f610c9ab123.tar.gz kamek-a801c529746fdf3109e657b8f7b01f610c9ab123.zip |
scale down stock item a bit on 4:3
-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 |