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:
committed by
Richard Cornwell
parent
6f20bfea8b
commit
037a256392
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user