]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2006-07-19 01:48:11 by cmay]
authorcmay <cmay@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 19 Jul 2006 01:48:11 +0000 (01:48 +0000)
committercmay <cmay@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 19 Jul 2006 01:48:11 +0000 (01:48 +0000)
Ran indent.sh to make pretty code.

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@673 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_Crystalfontz.c
drv_Curses.c

index db7b6cc8d7310e1abca18437d5d45ca957582c73..bade58b19f29f58c5a0dafea147cccdc70c1182f 100644 (file)
@@ -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) {
index 8b83aa6f26c7f5e70c085b354d60010530dd45de..12590aec46108840909b0b10e9d0bdb86d4efb52 100644 (file)
@@ -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  */