aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drv_Crystalfontz.c9
-rw-r--r--drv_Curses.c66
2 files changed, 40 insertions, 35 deletions
diff --git a/drv_Crystalfontz.c b/drv_Crystalfontz.c
index db7b6cc..bade58b 100644
--- a/drv_Crystalfontz.c
+++ b/drv_Crystalfontz.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.44 2006/07/19 01:35:31 cmay Exp $
+/* $Id: drv_Crystalfontz.c,v 1.45 2006/07/19 01:48:11 cmay Exp $
*
* new style driver for Crystalfontz display modules
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_Crystalfontz.c,v $
+ * Revision 1.45 2006/07/19 01:48:11 cmay
+ * Ran indent.sh to make pretty code.
+ *
* Revision 1.44 2006/07/19 01:35:31 cmay
* Renamed keypad direction names to avoid conflict with Curses library defs.
* Added keypad support to Curses display driver.
@@ -470,7 +473,7 @@ static void drv_CF_timer(void __attribute__ ((unused)) * notused)
static void drv_CF_send(const unsigned char cmd, const unsigned char len, const unsigned char *data)
{
- /* 1 cmd + 1 len + 22 payload + 2 crc = 26 */
+ /* 1 cmd + 1 len + 22 payload + 2 crc = 26 */
unsigned char buffer[26];
unsigned short crc;
struct timeval now, end;
@@ -1120,7 +1123,7 @@ int drv_CF_init(const char *section, const int quiet)
WIDGET_CLASS wc;
int ret;
- info("%s: %s", Name, "$Revision: 1.44 $");
+ info("%s: %s", Name, "$Revision: 1.45 $");
/* start display */
if ((ret = drv_CF_start(section)) != 0) {
diff --git a/drv_Curses.c b/drv_Curses.c
index 8b83aa6..12590ae 100644
--- a/drv_Curses.c
+++ b/drv_Curses.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Curses.c,v 1.12 2006/07/19 01:35:31 cmay Exp $
+/* $Id: drv_Curses.c,v 1.13 2006/07/19 01:48:11 cmay Exp $
*
* pure ncurses based text driver
*
@@ -26,6 +26,9 @@
*
*
* $Log: drv_Curses.c,v $
+ * Revision 1.13 2006/07/19 01:48:11 cmay
+ * Ran indent.sh to make pretty code.
+ *
* Revision 1.12 2006/07/19 01:35:31 cmay
* Renamed keypad direction names to avoid conflict with Curses library defs.
* Added keypad support to Curses display driver.
@@ -258,11 +261,11 @@ static int drv_Curs_start(const char *section, const int quiet)
static void drv_Curs_timer(void __attribute__ ((unused)) * notused)
{
int c;
- while(1) {
- c = wgetch(w);
- if(c <= 0 )
- break;
- drv_generic_keypad_press(c);
+ while (1) {
+ c = wgetch(w);
+ if (c <= 0)
+ break;
+ drv_generic_keypad_press(c);
}
}
@@ -270,31 +273,30 @@ static int drv_Curs_keypad(const int num)
{
int val = 0;
- switch(num)
- {
- case KEY_UP:
- debug("Key Up");
- val += WIDGET_KEY_PRESSED;
- val += WIDGET_KEY_UP;
- break;
- case KEY_DOWN:
- debug("Key Down");
- val += WIDGET_KEY_PRESSED;
- val += WIDGET_KEY_DOWN;
- break;
- case KEY_LEFT:
- debug("Key Left");
- val += WIDGET_KEY_PRESSED;
- val += WIDGET_KEY_LEFT;
- break;
- case KEY_RIGHT:
- debug("Key Right");
- val += WIDGET_KEY_PRESSED;
- val += WIDGET_KEY_RIGHT;
- break;
- default:
- debug("Unbound Key '%d'", num);
- break;
+ switch (num) {
+ case KEY_UP:
+ debug("Key Up");
+ val += WIDGET_KEY_PRESSED;
+ val += WIDGET_KEY_UP;
+ break;
+ case KEY_DOWN:
+ debug("Key Down");
+ val += WIDGET_KEY_PRESSED;
+ val += WIDGET_KEY_DOWN;
+ break;
+ case KEY_LEFT:
+ debug("Key Left");
+ val += WIDGET_KEY_PRESSED;
+ val += WIDGET_KEY_LEFT;
+ break;
+ case KEY_RIGHT:
+ debug("Key Right");
+ val += WIDGET_KEY_PRESSED;
+ val += WIDGET_KEY_RIGHT;
+ break;
+ default:
+ debug("Unbound Key '%d'", num);
+ break;
}
return val;
@@ -336,7 +338,7 @@ int drv_Curs_init(const char *section, const int quiet)
WIDGET_CLASS wc;
int ret;
- info("%s: %s", Name, "$Revision: 1.12 $");
+ info("%s: %s", Name, "$Revision: 1.13 $");
/* display preferences */
XRES = 1; /* pixel width of one char */