75 |
|
# include "mon.h" |
76 |
|
#endif |
77 |
|
|
78 |
< |
#define DEBUG 1 |
78 |
> |
#define DEBUG 0 |
79 |
|
#include "debug.h" |
80 |
|
|
81 |
|
|
104 |
|
|
105 |
|
|
106 |
|
// Global variables |
107 |
< |
static char *x_display_name = NULL; // X11 display name |
107 |
> |
char *x_display_name = NULL; // X11 display name |
108 |
|
Display *x_display = NULL; // X11 display handle |
109 |
|
|
110 |
|
static int zero_fd = -1; // FD of /dev/zero |
708 |
|
// Pseudo Mac 1Hz interrupt, update local time |
709 |
|
WriteMacInt32(0x20c, TimerDateTime()); |
710 |
|
|
711 |
+ |
SetInterruptFlag(INTFLAG_60HZ); |
712 |
+ |
TriggerInterrupt(); |
713 |
+ |
|
714 |
|
#ifndef HAVE_PTHREADS |
715 |
|
static int second_counter = 0; |
716 |
|
if (++second_counter > 60) { |