mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-11-05 22:04:43 +01:00
Remove half pixel offset from primitive 2D renderer.
This commit is contained in:
1 parent
63377c3f17
commit
86eac5ad8c
2 files changed
+15
No files matched your search
@@ -2444,6 +2444,11 @@ void SetShadowResolutionMidAsmHook(PPCRegister& r11)
|
||||
r11.u64 = 4096;
|
||||
}
|
||||
|
||||
void Primitive2DHalfPixelOffsetMidAsmHook(PPCRegister& f13)
|
||||
{
|
||||
f13.f64 = 0.0;
|
||||
}
|
||||
|
||||
static void SetResolution(be<uint32_t>* device)
|
||||
{
|
||||
uint32_t width = g_swapChain->getWidth();
|
||||
|
||||
@@ -93,3 +93,13 @@ registers = ["r3"]
|
||||
name = "SetShadowResolutionMidAsmHook"
|
||||
address = 0x82BAD87C
|
||||
registers = ["r11"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "Primitive2DHalfPixelOffsetMidAsmHook"
|
||||
address = 0x830D1F40
|
||||
registers = ["f13"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "Primitive2DHalfPixelOffsetMidAsmHook"
|
||||
address = 0x830D213C
|
||||
registers = ["f13"]
|
||||
Reference in new issue
Block a user