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