diff options
Diffstat (limited to 'apps/plugins/chessclock.c')
-rw-r--r-- | apps/plugins/chessclock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index 1fd01d38f6..d50310f46f 100644 --- a/apps/plugins/chessclock.c +++ b/apps/plugins/chessclock.c | |||
@@ -372,7 +372,7 @@ static int chessclock_set_int(char* string, | |||
372 | 372 | ||
373 | static char * show_time(int secs); | 373 | static char * show_time(int secs); |
374 | 374 | ||
375 | static bool pause; | 375 | static bool chesspause; |
376 | 376 | ||
377 | #define MAX_TIME 7200 | 377 | #define MAX_TIME 7200 |
378 | 378 | ||
@@ -436,7 +436,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
436 | timer_holder[i].hidden=false; | 436 | timer_holder[i].hidden=false; |
437 | } | 437 | } |
438 | 438 | ||
439 | pause=true; /* We start paused */ | 439 | chesspause=true; /* We start paused */ |
440 | 440 | ||
441 | nr=0; | 441 | nr=0; |
442 | do { | 442 | do { |
@@ -511,7 +511,7 @@ static int run_timer(int nr) | |||
511 | long ticks=0; | 511 | long ticks=0; |
512 | bool round_time=false; | 512 | bool round_time=false; |
513 | 513 | ||
514 | show_pause_mode(pause); | 514 | show_pause_mode(chesspause); |
515 | 515 | ||
516 | if (settings.round_time*HZ<max_ticks) { | 516 | if (settings.round_time*HZ<max_ticks) { |
517 | max_ticks=settings.round_time*HZ; | 517 | max_ticks=settings.round_time*HZ; |
@@ -533,7 +533,7 @@ static int run_timer(int nr) | |||
533 | ticks = max_ticks; | 533 | ticks = max_ticks; |
534 | } else { | 534 | } else { |
535 | now=*rb->current_tick; | 535 | now=*rb->current_tick; |
536 | if (!pause) { | 536 | if (!chesspause) { |
537 | ticks+=now-last_tick; | 537 | ticks+=now-last_tick; |
538 | if ((max_ticks-ticks)/HZ == 10) { | 538 | if ((max_ticks-ticks)/HZ == 10) { |
539 | /* Backlight on if 10 seconds remain */ | 539 | /* Backlight on if 10 seconds remain */ |
@@ -565,8 +565,8 @@ static int run_timer(int nr) | |||
565 | 565 | ||
566 | /* PLAY = Stop/Start toggle */ | 566 | /* PLAY = Stop/Start toggle */ |
567 | case CHC_STARTSTOP: | 567 | case CHC_STARTSTOP: |
568 | pause=!pause; | 568 | chesspause=!chesspause; |
569 | show_pause_mode(pause); | 569 | show_pause_mode(chesspause); |
570 | break; | 570 | break; |
571 | 571 | ||
572 | /* LEFT = Reset timer */ | 572 | /* LEFT = Reset timer */ |
@@ -633,7 +633,7 @@ static int run_timer(int nr) | |||
633 | break; | 633 | break; |
634 | } | 634 | } |
635 | rb->lcd_clear_display(); | 635 | rb->lcd_clear_display(); |
636 | show_pause_mode(pause); | 636 | show_pause_mode(chesspause); |
637 | rb->lcd_puts(0, FIRST_LINE, (unsigned char *)player_info); | 637 | rb->lcd_puts(0, FIRST_LINE, (unsigned char *)player_info); |
638 | } | 638 | } |
639 | break; | 639 | break; |