1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-10 14:49:07 +00:00

display: Add function to determine if display is blank.

This commit is contained in:
Lars Brinkhoff
2019-08-15 11:15:35 +02:00
committed by Richard Cornwell
parent 6f20bfea8b
commit 037a256392
2 changed files with 14 additions and 0 deletions

View File

@@ -439,6 +439,15 @@ queue_point(struct point *p)
p->delay = d;
}
/*
* Return true if the display is blank, i.e. no active points in list.
*/
int
display_is_blank(void)
{
return head->next == head;
}
/*
* here to to dynamically adjust interval for examination
* of elapsed vs. simulated time, and fritter away

View File

@@ -83,6 +83,11 @@ extern int display_scale(void);
*/
extern int display_age(int,int);
/*
* Return true if the display is blank.
*/
extern int display_is_blank(void);
/*
* display intensity levels.
* always at least 8 (for VT11/VS60) -- may be mapped internally