1
0
forked from 0ad/0ad

Darken the background of the profile viewer for better readability.

This was SVN commit r2798.
This commit is contained in:
prefect 2005-09-28 22:35:08 +00:00
parent 4146e3465c
commit 7fbbc1b0c6

View File

@ -60,6 +60,21 @@ void RenderProfile()
if( !profileVisible ) return;
if( !currentNode ) currentNode = g_Profiler.GetRoot();
int estimate_height;
estimate_height = 6 + currentNode->GetChildren()->size() + currentNode->GetScriptChildren()->size();
estimate_height = 20*estimate_height;
glDisable(GL_TEXTURE_2D);
glColor4ub(0,0,0,128);
glBegin(GL_QUADS);
glVertex2i(0, g_yres);
glVertex2i(660, g_yres);
glVertex2i(660, g_yres-estimate_height);
glVertex2i(0, g_yres-estimate_height);
glEnd();
glEnable(GL_TEXTURE_2D);
glPushMatrix();
glColor3f(1.0f, 1.0f, 1.0f);
@ -193,4 +208,4 @@ int profilehandler( const SDL_Event* ev )
break;
}
return( EV_PASS );
}
}