summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/openglgraphics.cpp2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c70c2560..d3334a70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2006-05-12 Björn Steinbrink <B.Steinbrink@gmx.de>
+2006-05-13 Bjørn Lindeijer <bjorn@lindeijer.nl>
+
+ * src/openglgraphics.cpp: Set color back to current color instead of
+ setting it to white. Fixes white rectangles in equipment window.
+
+2006-05-12 Björn Steinbrink <B.Steinbrink@gmx.de>
* src/being.cpp: Fixed initialization order in Being ctor.
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 1e8918cb..dc14b6c6 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -96,7 +96,7 @@ bool OpenGLGraphics::drawImage(Image *image, int srcX, int srcY,
drawTexedQuad(dstX, dstY, width, height, texX1, texY1, texX2, texY2);
- glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
+ glColor4ub(mColor.r, mColor.g, mColor.b, mColor.a);
return true;
}