little bugfix for last checkin

This commit is contained in:
Titus Tscharntke 2013-10-23 20:33:00 +00:00
parent 5c419a2713
commit ea92fce58d

View File

@ -2093,6 +2093,7 @@ void Renderer::renderConsole(const Console *console,const bool showFullConsole,
int y= console->getYPos()-5; int y= console->getYPos()-5;
int h= console->getLineHeight()*console->getStoredLineCount(); int h= console->getLineHeight()*console->getStoredLineCount();
int w= 1000; int w= 1000;
if(h>0){
//background //background
glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT); glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT);
glEnable(GL_BLEND); glEnable(GL_BLEND);
@ -2105,7 +2106,7 @@ void Renderer::renderConsole(const Console *console,const bool showFullConsole,
glVertex2i(x+w, y); glVertex2i(x+w, y);
glVertex2i(x+w, y+h); glVertex2i(x+w, y+h);
glEnd(); glEnd();
}
for(int i = 0; i < console->getStoredLineCount(); ++i) { for(int i = 0; i < console->getStoredLineCount(); ++i) {
const ConsoleLineInfo &lineInfo = console->getStoredLineItem(i); const ConsoleLineInfo &lineInfo = console->getStoredLineItem(i);
if(renderText3DEnabled == true) { if(renderText3DEnabled == true) {