add command completion to console

This commit is contained in:
Eduardo Bart
2011-11-01 16:32:48 -02:00
parent 59017205b0
commit d2e8e1d774
15 changed files with 96 additions and 20 deletions

View File

@@ -183,9 +183,11 @@ void Graphics::drawRepeatedTexturedRect(const Rect& screenCoords,
if(screenCoords.isEmpty() || texture->getId() == 0 || textureCoords.isEmpty())
return;
bool mustStopDrawing = false;
if(!m_drawing) {
bindTexture(texture);
startDrawing();
mustStopDrawing = true;
}
// render many repeated texture rects
@@ -212,7 +214,7 @@ void Graphics::drawRepeatedTexturedRect(const Rect& screenCoords,
}
}
if(!m_drawing)
if(mustStopDrawing)
stopDrawing();
}