From 920281923fe09573b4c797dbcc524d8c902da2da Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 14 Mar 2011 17:23:50 +0100 Subject: Backwards compatability in badrow direction --- src/detector.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/detector.c b/src/detector.c index b9239a0d..156cd188 100644 --- a/src/detector.c +++ b/src/detector.c @@ -413,11 +413,14 @@ static int parse_field_for_panel(struct panel *panel, const char *key, } else if ( strcmp(key, "badrow_direction") == 0 ) { panel->badrow = val[0]; /* First character only */ if ( (panel->badrow != 'x') && (panel->badrow != 'y') + && (panel->badrow != 'f') && (panel->badrow != 's') && (panel->badrow != '-') ) { - ERROR("badrow_direction must be x, y or '-'\n"); + ERROR("badrow_direction must be x, y, f, s or '-'\n"); ERROR("Assuming '-'\n."); panel->badrow = '-'; } + if ( panel->badrow == 'x' ) panel->badrow = 'f'; + if ( panel->badrow == 'y' ) panel->badrow = 's'; } else if ( strcmp(key, "no_index") == 0 ) { panel->no_index = atob(val); } else if ( strcmp(key, "fs") == 0 ) { -- cgit v1.2.3