mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
too much red in the console ;-)
This commit is contained in:
@@ -39,6 +39,7 @@ Console::Console() {
|
|||||||
yPos=20;
|
yPos=20;
|
||||||
lineHeight=20;
|
lineHeight=20;
|
||||||
font=CoreData::getInstance().getConsoleFont();
|
font=CoreData::getInstance().getConsoleFont();
|
||||||
|
stringToHighlight="";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Console::addStdMessage(const string &s) {
|
void Console::addStdMessage(const string &s) {
|
||||||
|
@@ -909,7 +909,7 @@ void Renderer::renderConsoleLine(int lineIndex, int xPosition, int yPosition, in
|
|||||||
fontColor = defaultFontColor;
|
fontColor = defaultFontColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lineInfo->text.find(stringToHightlight)!=string::npos){
|
if(stringToHightlight!="" && lineInfo->text.find(stringToHightlight)!=string::npos){
|
||||||
fontColor=Vec4f(1.f, 0.5f, 0.5f, 0.0f);
|
fontColor=Vec4f(1.f, 0.5f, 0.5f, 0.0f);
|
||||||
}
|
}
|
||||||
renderTextShadow(
|
renderTextShadow(
|
||||||
|
Reference in New Issue
Block a user