don't draw timer if it has an empty rect

This commit is contained in:
Eric House 2013-12-01 18:32:51 -08:00
parent 041385049d
commit 6875eaa10a

View file

@ -357,7 +357,8 @@ figureSecondsLeft( BoardCtxt* board )
void
drawTimer( BoardCtxt* board )
{
if ( board->gi->timerEnabled ) {
if ( board->gi->timerEnabled && 0 < board->timerBounds.width
&& 0 < board->timerBounds.height ) {
XP_S16 secondsLeft = figureSecondsLeft( board );
draw_drawTimer( board->draw, &board->timerBounds,