Remove half pixel offset from primitive 2D renderer.

This commit is contained in:
Skyth 2024-10-17 16:07:22 +03:00
parent 63377c3f17
commit 86eac5ad8c
2 changed files with 15 additions and 0 deletions

View file

@ -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();

View file

@ -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"]