info window

This commit is contained in:
Eduardo Bart
2011-04-16 21:36:58 -03:00
parent c5da620d59
commit 9dfb33f2ed
26 changed files with 267 additions and 97 deletions

View File

@@ -139,7 +139,7 @@ void Graphics::disableDrawing()
void Graphics::drawTexturedRect(const Rect& screenCoords, const TexturePtr& texture, const Rect& textureCoords, const Color& color)
{
if(screenCoords.isEmpty())
if(screenCoords.isEmpty() || textureCoords.isEmpty())
return;
// rect correction for opengl
@@ -170,7 +170,7 @@ void Graphics::drawTexturedRect(const Rect& screenCoords, const TexturePtr& text
void Graphics::drawRepeatedTexturedRect(const Rect& screenCoords, const TexturePtr& texture, const Rect& textureCoords, const Color& color)
{
if(screenCoords.isEmpty())
if(screenCoords.isEmpty() || textureCoords.isEmpty())
return;
// render many repeated texture rects