2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-19 06:45:23 +00:00

CGraphics: Fix implicit truncation errors

This commit is contained in:
2020-09-29 01:00:10 -04:00
parent fc9e18fe46
commit 4b40767050
2 changed files with 7 additions and 7 deletions

View File

@@ -317,8 +317,8 @@ SClipScreenRect CGraphics::ClipScreenRectFromVS(const zeus::CVector3f& p1, const
// int finalMinY = std::max(minY, 0 /* ViewportY origin */);
// int finalMaxY = std::min(maxY, int(g_Viewport.xc_height));
int width = maxX2 - minX2;
int height = maxY2 - minY2;
u32 width = maxX2 - minX2;
u32 height = maxY2 - minY2;
return {true,
minX2,
minY2,