aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 664b0ed..3f12e00 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,13 +23,13 @@
char url[256] = DEF_URL; // URL
char usernick[32] = DEF_NICK;
-char tmp[8]; // temporary # to string
unsigned char err; // error code of last operation.
unsigned char trip=0; // if trip=1, fujinet is asking us for attention.
bool old_enabled=false; // were interrupts enabled for old vector
void* old_vprced; // old PROCEED vector, restored on exit.
unsigned short rxbuflen;
unsigned int txbuflen; // TX buffer length
+char hz; /* 50 for PAL, 60 for NSTC */
/* TODO: user modes (default +iw), fg/bg color... */
@@ -142,6 +142,8 @@ int main(void) {
OS.color2 = 0xc0; /* darkest green background */
OS.color1 = 0x0c; /* bright text */
+ hz = (GTIA_READ.pal & 0x0e) ? 60 : 50;
+
scr_init();
while(1) {