aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-17 22:54:24 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-17 22:54:24 +0000
commit576b0f7404f30fab98053726654ea7d71d2373ae (patch)
treeba63d777482ae75ce8114672f7fbb6a444c08d44
parent5699033bfb75587970fda3bcb0a538a19c5da5b8 (diff)
Border round radiation and fuel meters
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@24 84d2e878-0bd5-11dd-ad15-13eda11d74c5
-rw-r--r--src/render.c9
1 files 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 */