Fixed a couple of parts of the HUD that were failing to disappear whenever HUD got switched off.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1596 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2008-04-29 13:36:57 +00:00
parent 4933fb7796
commit 5a84f7600b

View File

@ -77,6 +77,8 @@ GLfloat yellow_color[4] = {1.0, 1.0, 0.0, 1.0};
GLfloat green_color[4] = {0.0, 1.0, 0.0, 1.0};
GLfloat darkgreen_color[4] ={0.0, 0.75, 0.0, 1.0};
GLfloat blue_color[4] = {0.0, 0.0, 1.0, 1.0};
GLfloat black_color[4] = {0.0, 0.0, 0.0, 1.0};
GLfloat lightgray_color[4] = {0.25, 0.25, 0.25, 1.0};
static float sGlyphWidths[256];
@ -1335,7 +1337,7 @@ static BOOL hostiles;
glEnd();
// Draw black backing, so outline colour isnt blended into missile colour.
glColor4f(0.0, 0.0, 0.0, 1.0);
GLColorWithOverallAlpha(black_color, overallAlpha);
glBegin(GL_POLYGON);
if (miss_icon)
{
@ -1399,8 +1401,8 @@ static BOOL hostiles;
}
}
else
{
glColor4f(0.25, 0.25, 0.25, 0.5);
{
GLColorWithOverallAlpha(lightgray_color, overallAlpha);
glBegin(GL_LINE_LOOP);
hudDrawMissileIconAt(x + i * sp, y, z1, siz);
glEnd();