From 5a8f05e8afffeb388d21280bdc0b75e235fa6774 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sun, 9 Jan 2011 08:43:25 +0000 Subject: [PATCH] - better messagebox painting - bugfix for progress bar painting --- source/glest_game/graphics/renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 93a9ef86f..e44f9e602 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -1657,6 +1657,7 @@ void Renderer::renderMessageBox(const GraphicMessageBox *messageBox) { glPopAttrib(); + glDisable(GL_BLEND); //buttons renderButton(messageBox->getButton1()); if(messageBox->getButtonCount()==2){ @@ -4167,7 +4168,7 @@ void Renderer::renderProgressBar(int size, int x, int y, Font2D *font, int custo string renderText = intToStr(static_cast(size)) + "%"; if(customWidth > 0) { if(size > 0) { - currentSize = size * (customWidth / size); + currentSize = customWidth * (size / 100); } maxSize = customWidth; }