1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Code cleaup: fix idents, replace spaces by tabs.

This commit is contained in:
Sergey Lipskiy 2014-09-01 23:21:40 +07:00
parent 4d93ddac4f
commit 389a46c394
5 changed files with 534 additions and 534 deletions

10
gSP.cpp
View File

@ -166,7 +166,7 @@ void gSPTriangle(s32 v0, s32 v1, s32 v2)
}
gDP.colorImage.changed = TRUE;
gDP.colorImage.height = (unsigned int)(max( gDP.colorImage.height, gDP.scissor.lry ));
gDP.colorImage.height = (u32)max( gDP.colorImage.height, (u32)gDP.scissor.lry );
}
void gSP1Triangle( const s32 v0, const s32 v1, const s32 v2)
@ -412,9 +412,9 @@ static void gSPLightVertex_default(u32 v)
g += gSP.lights[i].g * intensity;
b += gSP.lights[i].b * intensity;
}
OGL.triangles.vertices[v].r = min(1.0, r);
OGL.triangles.vertices[v].g = min(1.0, g);
OGL.triangles.vertices[v].b = min(1.0, b);
OGL.triangles.vertices[v].r = min(1.0f, r);
OGL.triangles.vertices[v].g = min(1.0f, g);
OGL.triangles.vertices[v].b = min(1.0f, b);
} else {
OGL.triangles.vertices[v].HWLight = gSP.numLights;
OGL.triangles.vertices[v].r = OGL.triangles.vertices[v].nx;
@ -1969,7 +1969,7 @@ void gSPObjSprite( u32 sp )
OGL_DrawTriangles();
gDP.colorImage.changed = TRUE;
gDP.colorImage.height = (unsigned int)(max( gDP.colorImage.height, gDP.scissor.lry ));
gDP.colorImage.height = (u32)(max( gDP.colorImage.height, (u32)gDP.scissor.lry ));
}
void gSPObjLoadTxSprite( u32 txsp )