diff options
| author | robojumper <robojumper@gmail.com> | 2024-04-27 16:19:58 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2024-04-27 16:32:40 +0200 |
| commit | 00765b2fb0b05d01b0c3f1606383fbf5b82ecf1a (patch) | |
| tree | 2b89fd97c2b2364b14828d75cbd484972ec3998f /src/egg/core/eggAsyncDisplay.cpp | |
| parent | 010a351e4d874dd4d479986bd8f87c29523505fc (diff) | |
Fix registers
Diffstat (limited to 'src/egg/core/eggAsyncDisplay.cpp')
| -rw-r--r-- | src/egg/core/eggAsyncDisplay.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/egg/core/eggAsyncDisplay.cpp b/src/egg/core/eggAsyncDisplay.cpp index 258c7145..f4d41219 100644 --- a/src/egg/core/eggAsyncDisplay.cpp +++ b/src/egg/core/eggAsyncDisplay.cpp @@ -200,14 +200,15 @@ void AsyncDisplay::clearEFB(u16 fbWidth, u16 fbHeight, u16 x, u16 y, u16 width, GXSetCullMode(GX_CULL_BACK); GXBegin(GX_QUADS, GX_VTXFMT0, 4); - // The regs are wrong here GXPosition2u16(x, y); GXPosition2u8(0, 0); - GXPosition2u16(x + width, y); + u16 tmp = x + width; + GXPosition2u16(tmp, y); GXPosition2u8(1, 0); - GXPosition2u16(x + width, y + height); + u16 tmp2 = y + height; + GXPosition2u16(tmp, tmp2); GXPosition2u8(1, 1); - GXPosition2u16(width, y + height); + GXPosition2u16(x, tmp2); GXPosition2u8(0, 1); // GXEnd(); |
