Merge pull request #292 from sblondon/clean-remove-unused-variables

clean: remove unused variables
This commit is contained in:
Wouter Wijsman
2025-05-14 09:52:35 +02:00
committed by GitHub
3 changed files with 0 additions and 8 deletions

View File

@@ -131,7 +131,6 @@ int main(int argc, char* argv[])
SceCtrlData pad; SceCtrlData pad;
unsigned int buttonsold = 0; unsigned int buttonsold = 0;
int rendermode = 0; int rendermode = 0;
int i = 0;
int val = 0; int val = 0;
_DisableFPUExceptions(); _DisableFPUExceptions();
@@ -180,8 +179,6 @@ int main(int argc, char* argv[])
while (!done) while (!done)
{ {
unsigned int x,y;
sceGuStart(GU_DIRECT,list); sceGuStart(GU_DIRECT,list);
sceGuClearColor(0); sceGuClearColor(0);

View File

@@ -375,8 +375,6 @@ extern unsigned char logo3_start[];
unsigned char *logo2_temp; unsigned char *logo2_temp;
unsigned char *logo3_temp; unsigned char *logo3_temp;
static int rendertype;
ScePspFVector3 columns[4] = { ScePspFVector3 columns[4] = {
{ 0.707f, 0.707f, 0.0f }, // cos(a), sin(a), tx { 0.707f, 0.707f, 0.0f }, // cos(a), sin(a), tx
{ -0.707f, 0.707f, 0.0f }, // -sin(a), cos(a), ty { -0.707f, 0.707f, 0.0f }, // -sin(a), cos(a), ty

View File

@@ -118,15 +118,12 @@ void setupSH()
struct Vertex* vtx = vertices; struct Vertex* vtx = vertices;
struct Vertex* currvtx = vtx; struct Vertex* currvtx = vtx;
float du = (GU_PI*2) / GRID_WIDTH;
float dh = 1.0f / GRID_WIDTH; float dh = 1.0f / GRID_WIDTH;
unsigned int i,j; unsigned int i,j;
for (i = 0; i < GRID_WIDTH; ++i) for (i = 0; i < GRID_WIDTH; ++i)
{ {
float u = i * du;
for (j = 0; j < GRID_HEIGHT; ++j) for (j = 0; j < GRID_HEIGHT; ++j)
{ {
currvtx->color = hsl2rgb(i * dh, 1.0f, 0.5f); currvtx->color = hsl2rgb(i * dh, 1.0f, 0.5f);