diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/openglgraphics.cpp | 2 |
2 files changed, 7 insertions, 2 deletions
@@ -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; } |