little bugfix for last checkin
This commit is contained in:
parent
5c419a2713
commit
ea92fce58d
|
@ -2093,19 +2093,20 @@ 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;
|
||||||
//background
|
if(h>0){
|
||||||
glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT);
|
//background
|
||||||
glEnable(GL_BLEND);
|
glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT);
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
|
||||||
glColor4f(0.0f, 0.0f, 0.0f, 0.8f) ;
|
glColor4f(0.0f, 0.0f, 0.0f, 0.8f) ;
|
||||||
|
|
||||||
glBegin(GL_TRIANGLE_STRIP);
|
|
||||||
glVertex2i(x, y);
|
|
||||||
glVertex2i(x, y+h);
|
|
||||||
glVertex2i(x+w, y);
|
|
||||||
glVertex2i(x+w, y+h);
|
|
||||||
glEnd();
|
|
||||||
|
|
||||||
|
glBegin(GL_TRIANGLE_STRIP);
|
||||||
|
glVertex2i(x, y);
|
||||||
|
glVertex2i(x, y+h);
|
||||||
|
glVertex2i(x+w, y);
|
||||||
|
glVertex2i(x+w, y+h);
|
||||||
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue