From 6a92182d9f24f7003f634c0b6a21af418daef442 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 12 May 2006 23:45:30 +0000 Subject: Set color back to current color instead of setting it to white. Fixes white rectangles in equipment window. --- src/openglgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2