mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
don't draw timer if it has an empty rect
This commit is contained in:
parent
041385049d
commit
6875eaa10a
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue