-/* xscreensaver, Copyright (c) 1999-2012 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1999-2014 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
if (!s->tc)
return;
- if (loadBytes > 0){
- char c = textclient_getc (s->tc);
- n = (c > 0 ? 1 : -1);
- s->buf [s->buf_pos] = c;
- }
+ if (loadBytes > 0)
+ {
+ int c = textclient_getc (s->tc);
+ n = (c > 0 ? 1 : -1);
+ s->buf [s->buf_pos] = (char) c;
+ }
+
if (n > 0)
{
s->do_fill_buff = False;
AGAIN:
c = ((unsigned char *) state->typing)[0];
- c1 = ((unsigned char *) state->typing)[1];
+ c1 = c ? ((unsigned char *) state->typing)[1] : 0;
state->typing_delay = (!c || c1 == '\n'
? state->typing_line_delay
state->xgwa.width,
state->xgwa.height,
state->grid_width - 2,
- state->grid_height - 1);
+ state->grid_height - 1,
+ 0);
}
static Bool
return True;
default:
- return False;
+ break;
}
}
+ if (screenhack_event_helper (dpy, window, event))
+ {
+ set_mode (state, DRAIN_MATRIX);
+ return True;
+ }
+
return False;
}
"*usePipe: False",
"*usePty: False",
"*program: xscreensaver-text",
- "*geometry: 800x600",
+ "*geometry: 960x720",
0
};