Hiroyuki Ikezoe
ikezo****@users*****
2006年 11月 27日 (月) 13:19:15 JST
Index: tomoe/recognizer/tomoe-recognizer-simple-logic.c diff -u tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.26 tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.27 --- tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.26 Mon Nov 27 11:55:22 2006 +++ tomoe/recognizer/tomoe-recognizer-simple-logic.c Mon Nov 27 13:19:15 2006 @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA * - * $Id: tomoe-recognizer-simple-logic.c,v 1.26 2006/11/27 02:55:22 ikezoe Exp $ + * $Id: tomoe-recognizer-simple-logic.c,v 1.27 2006/11/27 04:19:15 ikezoe Exp $ */ #include <stdlib.h> @@ -27,8 +27,7 @@ #include "tomoe-candidate.h" #include "tomoe-recognizer-simple-logic.h" -#define TOMOE_WRITING_SIZE 300 -#define LIMIT_LENGTH ((TOMOE_WRITING_SIZE * 0.25) * (TOMOE_WRITING_SIZE * 0.25)) +#define LIMIT_LENGTH ((TOMOE_WRITING_WIDTH * 0.25) * (TOMOE_WRITING_WIDTH * 0.25)) typedef struct _tomoe_metric tomoe_metric; @@ -689,7 +688,7 @@ GList *rv = NULL; GList *most_node; gint dist; - gint error = TOMOE_WRITING_SIZE * TOMOE_WRITING_SIZE / 400; /* 5% */ + gint error = TOMOE_WRITING_WIDTH * TOMOE_WRITING_WIDTH / 400; /* 5% */ dist = get_distance(first_node, last_node, &most_node); @@ -725,10 +724,7 @@ for (point = new_points; point; point = g_list_next (point)) { TomoePoint *p = (TomoePoint *) point->data; - gint x, y; - x = p->x * ((gdouble)TOMOE_WRITING_SIZE / TOMOE_WRITING_SIZE /* priv->size */); - y = p->y * ((gdouble)TOMOE_WRITING_SIZE / TOMOE_WRITING_SIZE /* priv->size */); - tomoe_writing_line_to (new, x, y); + tomoe_writing_line_to (new, p->x, p->y); } }