summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-18 19:04:26 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-18 19:04:26 (GMT)
commitfb28bc857649c2cab57476007e60827d7140c6f8 (patch)
tree98020252086db602352c8d907b15ba8b4d95cf7b
parent1a01aff2002d935129d499046fd4079f84b8f2bb (diff)
initialize variables in glview.cc
-rw-r--r--src/glview.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glview.cc b/src/glview.cc
index fb69f27..0c8394a 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -500,6 +500,7 @@ void GLView::paintGL()
// FIXME: This was an attempt to keep contrast with background, but is suboptimal
// (e.g. nearly invisible against a gray background).
int r,g,b;
+ r=g=b=0;
// bgcol.getRgb(&r, &g, &b);
glColor3d((255.0-r)/255.0, (255.0-g)/255.0, (255.0-b)/255.0);
glBegin(GL_LINES);
contact: Jan Huwald // Impressum