From 576b0f7404f30fab98053726654ea7d71d2373ae Mon Sep 17 00:00:00 2001 From: taw27 Date: Sat, 17 May 2008 22:54:24 +0000 Subject: Border round radiation and fuel meters git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@24 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/render.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/render.c b/src/render.c index a68d14c..105d206 100644 --- a/src/render.c +++ b/src/render.c @@ -296,6 +296,7 @@ static void render_draw_2d(RenderContext *r) { glLoadIdentity(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); + glScalef(0.95, 0.95, 1.0); /* Radiation symbol */ texture = texture_lookup(r, "radioactive"); @@ -320,8 +321,8 @@ static void render_draw_2d(RenderContext *r) { /* Radiation meter */ glBegin(GL_QUADS); glColor4f(1.0, 1.0, 0.0, 0.5); - glVertex2f(-1.0, -0.9); /* Bottom left */ - glVertex2f(-0.9, -0.9); /* Bottom right */ + glVertex2f(-1.0, -0.8); /* Bottom left */ + glVertex2f(-0.9, -0.8); /* Bottom right */ glColor4f(1.0, 0.0, 0.0, 0.5); glVertex2f(-0.9, 1.0); /* Top right */ glVertex2f(-1.0, 1.0); /* Top left */ @@ -350,8 +351,8 @@ static void render_draw_2d(RenderContext *r) { /* Fuel meter */ glBegin(GL_QUADS); glColor4f(1.0, 0.0, 0.2, 0.5); - glVertex2f(0.9, -0.9); /* Bottom left */ - glVertex2f(1.0, -0.9); /* Bottom right */ + glVertex2f(0.9, -0.8); /* Bottom left */ + glVertex2f(1.0, -0.8); /* Bottom right */ glColor4f(0.0, 1.0, 0.3, 0.5); glVertex2f(1.0, 1.0); /* Top right */ glVertex2f(0.9, 1.0); /* Top left */ -- cgit v1.2.3