~canonical-scott/live-f1/pvr

« back to all changes in this revision

Viewing changes to src/display.h

  • Committer: Scott James Remnant
  • Date: 2005-10-15 05:38:03 UTC
  • Revision ID: scott@netsplit.com-20051015053803-a3ee51ed30127f84
* src/stream.c (read_stream): Don't bomb out when our syscalls are
interrupted by signal, instead just come back later and carry on.
* src/display.c (should_quit): Rename to handle_keys, return < 0
when should quit, > 0 on any other key.  Handle the KEY_RESIZE
event by clearing the board.
* src/display.h: Update.
* src/main.c (main): Call handle_keys function rather than
should_quit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
void open_display  (void);
34
34
void close_display (void);
35
 
int  should_quit   (void);
 
35
int  handle_keys   (CurrentState *state);
36
36
 
37
37
void clear_board   (CurrentState *state);
38
38
void update_cell   (CurrentState *state, int car, int type);