summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorJames <git@panaceas.org>2014-05-05 17:54:12 +0100
committerJames <git@panaceas.org>2014-05-05 17:54:12 +0100
commit0dd7af76f012e9a02182ed37b7cb0be3dcd55fed (patch)
treeedd0bcc8c90a630a0c72eb561fad07df95e55af9 /layout.c
parentd00119c905bccaa796a885e17f945f5644404772 (diff)
downloadkmd_usb-0dd7af76f012e9a02182ed37b7cb0be3dcd55fed.tar.gz
kmd_usb-0dd7af76f012e9a02182ed37b7cb0be3dcd55fed.tar.bz2
kmd_usb-0dd7af76f012e9a02182ed37b7cb0be3dcd55fed.zip
indent
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/layout.c b/layout.c
index 32f1cdf..d01f0f9 100644
--- a/layout.c
+++ b/layout.c
@@ -35,7 +35,7 @@ layout_possible (int console, int computer)
if (console_locked[console])
return 0;
-return 1;
+ return 1;
}
#elif defined(LAYOUT_HOME)
int
@@ -77,6 +77,8 @@ layout_map (int console, int computer)
{
int oc;
+ printf ("layout_map %d %d\n", console, computer);
+
if ((console < 1) || (console > N_CONSOLE))
return;
if ((computer < 1) || (computer > N_COMPUTER))
@@ -143,11 +145,15 @@ layout_toggle_lock (int computer)
int
layout_init (void)
{
+#ifdef LAYOUT_HOME
mm = MM_open ();
layout_map (1, 3);
layout_map (2, 4);
layout_map (3, 5);
+#elif defined(LAYOUT_BROMIUM)
+ layout_map (1, 1);
+#endif
layout_status (3);