mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-04 12:15:37 +00:00
Fix CGraphics::Render2D regswaps
Former-commit-id: 36535dea70a4622f81de295d879efc1b6ce793b8
This commit is contained in:
parent
543a0f1fe8
commit
8e285ccdc2
@ -817,10 +817,11 @@ void CGraphics::Render2D(const CTexture& tex, int x, int y, int w, int h, const
|
||||
MTXIdentity(mtx);
|
||||
GXLoadPosMtxImm(mtx, GX_PNMTX0);
|
||||
|
||||
float x1 = x - mViewport.mWidth / 2;
|
||||
float y1 = y - mViewport.mHeight / 2;
|
||||
float x2 = x1 + w;
|
||||
float y2 = y1 + h;
|
||||
float x2, y2, x1, y1;
|
||||
x1 = x - mViewport.mWidth / 2;
|
||||
y1 = y - mViewport.mHeight / 2;
|
||||
x2 = x1 + w;
|
||||
y2 = y1 + h;
|
||||
|
||||
// Save state + setup
|
||||
CGX::SetVtxDescv(skPosColorTexDirect);
|
||||
|
Loading…
x
Reference in New Issue
Block a user